Browse Source
Update chooser.py
fix: update default_path with the widget value
pull/905/head
HongKee Moon
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
gooey/gui/components/widgets/core/chooser.py
|
|
@ -123,8 +123,9 @@ class DirChooser(Chooser): |
|
|
|
""" Retrieve a path to the supplied directory """ |
|
|
|
def getDialog(self): |
|
|
|
options = self.Parent._options |
|
|
|
pathValue = self.getValue() |
|
|
|
return wx.DirDialog(self, message=options.get('message', _('choose_folder')), |
|
|
|
defaultPath=options.get('default_path', os.getcwd())) |
|
|
|
defaultPath=pathValue) |
|
|
|
|
|
|
|
class MultiDirChooser(Chooser): |
|
|
|
""" Retrieve multiple directories from the system """ |
|
|
|