Browse Source

closes #260 - Unable to take multiple files as input

pull/263/merge
chriskiehl 7 years ago
parent
commit
12b2181a28
1 changed files with 4 additions and 1 deletions
  1. 5
      gooey/gui/components/widgets/core/chooser.py

5
gooey/gui/components/widgets/core/chooser.py

@ -1,4 +1,5 @@
import wx
import os
from gooey.gui.components.widgets.core.text_input import TextInput
from gooey.gui.components.widgets.dialogs.calender_dialog import CalendarDlg
@ -68,7 +69,9 @@ class FileChooser(Chooser):
class MultiFileChooser(Chooser):
""" Retrieve an multiple files from the system """
def getDialog(self):
return wx.FileDialog(self, style=wx.FD_OPEN | wx.FD_FILE_MUST_EXIST)
return wx.FileDialog(self, "Open Files" ,style=wx.FD_OPEN | wx.FD_FILE_MUST_EXIST | wx.FD_MULTIPLE)
def getResult(self, dialog):
return os.pathsep.join(dialog.GetPaths())
class FileSaver(Chooser):

Loading…
Cancel
Save