You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

9 years ago
#:import os os
Popup:
9 years ago
title: _('Wallets')
id: popup
9 years ago
BoxLayout:
orientation: 'vertical'
Label:
id: text_input
height: '32dp'
size_hint_y: None
text: os.path.basename(app.wallet.storage.path)
Widget
9 years ago
size_hint_y: None
FileChooserListView:
9 years ago
id: wallet_selector
path: os.path.dirname(app.wallet.storage.path)
on_selection:
text_input.text = os.path.basename(self.selection[0]) if self.selection else ''
9 years ago
size_hint: 1, 1
GridLayout:
cols: 3
size_hint_y: None
Button:
9 years ago
size_hint: 0.5, None
height: '48dp'
text: _('Create')
on_release:
popup.dismiss()
app.create_wallet_dialog()
Button:
size_hint: 0.5, None
height: '48dp'
text: _('Open')
on_release:
popup.dismiss()
app.open_wallet(text_input.text)
9 years ago
Button:
size_hint: 0.5, None
height: '48dp'
text: _('Cancel')
9 years ago
on_release:
popup.dismiss()