Skip to content

Commit e8b8027

Browse files
committed
Moved main Kivy template to sub directory
1 parent 822055a commit e8b8027

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

python_password/PyPassword.kv renamed to python_password/kv_templates/PyPassword.kv

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,21 @@ Screen:
6161
Screen:
6262
name: 'passwords'
6363
on_enter:
64-
app.update_passwords()
65-
app.check_alpha()
6664

6765
BoxLayout:
6866
orientation: 'horizontal'
67+
size_hint_y: None
68+
height: root.height - toolbar.height
6969
spacing: 30
7070
padding: (15, 0)
7171

7272
ScrollView:
73-
size_hint: (.59, None)
74-
height: root.height - toolbar.height
73+
size_hint: (.59, 1)
7574
MDList:
7675
id: passwords_list
7776

7877
BoxLayout:
79-
size_hint: (.41, None)
78+
size_hint: (.41, 1)
8079
height: root.height - toolbar.height
8180
orientation: 'vertical'
8281
spacing: 15
@@ -118,6 +117,7 @@ Screen:
118117
mode: 'rectangle'
119118
required: False
120119
password: False
120+
on_text_validate: app.validate_input(self, 3)
121121

122122
MDFillRoundFlatIconButton:
123123
size_hint_x: 1
@@ -139,7 +139,6 @@ Screen:
139139
size_hint_x: 1
140140
text: 'Refresh'
141141
icon: 'refresh'
142-
on_release: app.update_passwords()
143142

144143
Screen:
145144
name: 'settings'
@@ -171,7 +170,6 @@ Screen:
171170
required: False
172171
password: True
173172
size_hint_x: .7
174-
on_text_validate: app.change_alpha()
175173

176174
BoxLayout:
177175
orientation: 'horizontal'
@@ -181,7 +179,6 @@ Screen:
181179
id: btn_alpha_change
182180
text: 'Save'
183181
icon: 'checkbox-marked-outline'
184-
on_release: app.change_alpha()
185182

186183
MDFillRoundFlatIconButton:
187184
id: btn_alpha_reset
@@ -218,7 +215,6 @@ Screen:
218215
MDFillRoundFlatIconButton:
219216
text: 'Save'
220217
icon: 'checkbox-marked-outline'
221-
on_release: app.change_beta()
222218

223219
MDFillRoundFlatIconButton:
224220
text: 'Reset'

0 commit comments

Comments
 (0)