Skip to content

Commit 8c68809

Browse files
committed
Added refresh button
Other changes: - Max length in TextInput os not omptimized. - Buttons do not have to have ID's. - Binded properly delete button.
1 parent d5fba4a commit 8c68809

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

python_password/PyPassword.kv

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ Screen:
9898
on_text_validate: app.validate_input(self, 6)
9999

100100
MDFillRoundFlatIconButton:
101-
id: btn_add_password
102101
size_hint_x: 1
103102
text: 'Add password'
104103
icon: 'key-plus'
@@ -113,14 +112,13 @@ Screen:
113112
helper_text_mode: 'on_error'
114113
mode: 'rectangle'
115114
required: False
116-
max_text_length: 16
117115
password: False
118116

119117
MDFillRoundFlatIconButton:
120-
id: btn_del_password
121118
size_hint_x: 1
122119
text: 'Remove password'
123120
icon: 'key-minus'
121+
on_release: app.del_password()
124122

125123
MDSeparator:
126124

@@ -130,6 +128,14 @@ Screen:
130128
halign: 'center'
131129
valign: 'middle'
132130

131+
MDSeparator:
132+
133+
MDFillRoundFlatIconButton:
134+
size_hint_x: 1
135+
text: 'Refresh'
136+
icon: 'refresh'
137+
on_release: app.update_passwords()
138+
133139
Screen:
134140
name: 'settings'
135141

0 commit comments

Comments
 (0)