-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterpunction.kv
More file actions
105 lines (86 loc) · 2.57 KB
/
Copy pathinterpunction.kv
File metadata and controls
105 lines (86 loc) · 2.57 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#: import main app
#: import ListItemButton kivy.uix.listview.ListItemButton
#: import ListAdapter kivy.adapters.listadapter.ListAdapter
MainMenu
<Widget>:
font_name: './fonts/DejaVuSans.ttf'
<MainMenu>:
TextHandler
<TextHandler>:
orientation: 'vertical'
text_input: text_box
RightClickFunctionalityTextBox:
id: text_box
focus: True
Button:
id: process_text
height: "45dp"
size_hint_y: None
text: 'Обработи текст'
on_press: root.process_text(app.root.pattern_list, app.root.word_token)
BoxLayout:
height: "45dp"
size_hint_y: None
orientation: 'horizontal'
Button:
text: 'Подесување'
on_press: app.root.change_configuration()
<InterpunctionButton>:
height: "45dp"
size_hint_y: None
text: u'{0}'.format(self.interpunction_sign[1])
on_press: app.root.select_interpunction_sign(self.interpunction_sign)
<ConfigurationHandler>:
orientation: 'vertical'
interpunction_signs: interpunction_signs_list
text_box: text_box_input
BoxLayout:
height: "45dp"
size_hint_y: None
RightClickFunctionalityTextBox:
id: text_box
size_hint_x: 50
multiline: False
font_size: "30dp"
Button:
size_hint_x: 25
text: 'Додади'
on_press: app.root.add_interpunction_sing(text_box.text)
Button:
size_hint_x: 25
text: 'Избриши'
on_press: app.root.delete_interpunction_sing()
ListView:
id: interpunction_signs_list
adapter:
ListAdapter(data=[], cls=main.InterpunctionButton, args_converter=app.root.args_converter)
BoxLayout:
height: "45dp"
size_hint_y: None
orientation: 'horizontal'
RightClickFunctionalityTextBox:
id: text_box_input
size_hint_x: 50
multiline: False
font_size: "30dp"
Button:
size_hint_x: 50
text: 'Зачувај'
on_press: app.root.change_word_token(text_box_input.text)
Button:
height: "45dp"
size_hint_y: None
text: 'Назад'
on_press: app.root.open_text_handler()
<CopyPastePopup>:
title: 'Copy/Paste'
id: cpopup
size_hint: .25, .25
BoxLayout:
orientation: 'vertical'
Button:
text: 'Copy'
on_press: root.copy_press()
Button:
text: 'Paste'
on_press: root.paste_press()