-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtextinputlinenumber.kv
More file actions
41 lines (32 loc) · 1.04 KB
/
textinputlinenumber.kv
File metadata and controls
41 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<TextInputLineNumber@BoxLayout>:
line_numbers: line_numbers
text_content: text_content
cursor: self.text_content.cursor
cursor_pos: self.text_content.cursor_pos
scroll_y: self.text_content.scroll_y
text: self.text_content.text
amount_lines: self.text_content.amount_lines
lines_flags: self.text_content.lines_flags
line_spacing: 3
on_focus: text_content.focus=True
selection: text_content.selection_text
LineNumbers:
id: line_numbers
line_spacing: root.line_spacing
cursor: 0, root.text_content.cursor[1]
scroll_y: root.text_content.scroll_y
lines_flags: root.text_content.lines_flags
CustomTextInput:
id: text_content
line_spacing: root.line_spacing
scroll_y: root.line_numbers.scroll_y
text: root.text
cursor: root.cursor
<CustomTextInput@CodeInput>:
<LineNumbers@TextInput>:
background_color: '090909'
disabled_foreground_color: 'ffffff'
readonly: True
size_hint_max_x: 50
text: '1'
disabled: True