ThomasV
9 years ago
6 changed files with 85 additions and 59 deletions
@ -1,27 +1,49 @@ |
|||||
Popup: |
Popup: |
||||
id: pw |
id: popup |
||||
title: _('Password') |
title: _('Enter PIN Code') |
||||
|
|
||||
BoxLayout: |
BoxLayout: |
||||
|
|
||||
orientation: 'vertical' |
orientation: 'vertical' |
||||
|
|
||||
GridLayout: |
Label: |
||||
cols: 2 |
id: a |
||||
Label: |
text: '*'*len(kb.password) |
||||
text: 'Password' |
|
||||
size_hint: 1, None |
|
||||
height: '48dp' |
|
||||
TextInput: |
|
||||
id: text_input |
|
||||
size_hint: 1, None |
|
||||
password: True |
|
||||
multiline: False |
|
||||
Button: |
|
||||
size_hint: 1, None |
size_hint: 1, None |
||||
height: '48dp' |
height: '48dp' |
||||
text: _('Close') |
|
||||
on_release: pw.dismiss() |
GridLayout: |
||||
|
id: kb |
||||
|
update_text: app.update_password |
||||
|
password: '' |
||||
|
on_password: if len(self.password) == 6: popup.dismiss() |
||||
|
size_hint: 1, None |
||||
|
height: '300dp' |
||||
|
cols: 3 |
||||
|
KButton: |
||||
|
text: '1' |
||||
|
KButton: |
||||
|
text: '2' |
||||
|
KButton: |
||||
|
text: '3' |
||||
|
KButton: |
||||
|
text: '4' |
||||
|
KButton: |
||||
|
text: '5' |
||||
|
KButton: |
||||
|
text: '6' |
||||
|
KButton: |
||||
|
text: '7' |
||||
|
KButton: |
||||
|
text: '8' |
||||
|
KButton: |
||||
|
text: '9' |
||||
|
KButton: |
||||
|
text: 'Clear' |
||||
|
KButton: |
||||
|
text: '0' |
||||
|
KButton: |
||||
|
text: '<' |
||||
|
|
||||
Widget: |
Widget: |
||||
size_hint: 1, 1 |
size_hint: 1, 1 |
||||
|
Loading…
Reference in new issue