kivy file chooser: set rootpath

This commit is contained in:
ThomasV 2016-06-05 15:38:06 +02:00
parent fe5374fe8e
commit 4e8c616090
1 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ Builder.load_string('''
<WalletDialog@Popup>: <WalletDialog@Popup>:
title: _('Wallets') title: _('Wallets')
id: popup id: popup
path: '' path: os.path.dirname(app.get_wallet_path())
BoxLayout: BoxLayout:
orientation: 'vertical' orientation: 'vertical'
padding: '10dp' padding: '10dp'
@ -23,7 +23,8 @@ Builder.load_string('''
dirselect: False dirselect: False
filter_dirs: True filter_dirs: True
filter: '*.*' filter: '*.*'
path: os.path.dirname(app.get_wallet_path()) path: root.path
rootpath: root.path
size_hint_y: 0.6 size_hint_y: 0.6
Widget Widget
size_hint_y: 0.1 size_hint_y: 0.1