mirror of https://github.com/chriskiehl/Gooey.git
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.
53 lines
1.1 KiB
53 lines
1.1 KiB
from gooey.gui import formatters
|
|
from gooey.gui.components.widgets import core
|
|
from gooey.gui.components.widgets.bases import TextContainer, BaseChooser
|
|
|
|
|
|
__ALL__ = [
|
|
'FileChooser',
|
|
'MultiFileChooser',
|
|
'FileSaver',
|
|
'DirChooser',
|
|
'MultiDirChooser',
|
|
'DateChooser',
|
|
'ColourChooser',
|
|
'TimeChooser'
|
|
]
|
|
|
|
|
|
class FileChooser(BaseChooser):
|
|
widget_class = core.FileChooser
|
|
|
|
|
|
class MultiFileChooser(BaseChooser):
|
|
widget_class = core.MultiFileChooser
|
|
|
|
def formatOutput(self, metatdata, value):
|
|
return formatters.multiFileChooser(metatdata, value)
|
|
|
|
|
|
class FileSaver(BaseChooser):
|
|
widget_class = core.FileSaver
|
|
|
|
|
|
class DirChooser(BaseChooser):
|
|
widget_class = core.DirChooser
|
|
|
|
|
|
class MultiDirChooser(BaseChooser):
|
|
widget_class = core.MultiDirChooser
|
|
|
|
def formatOutput(self, metadata, value):
|
|
return formatters.multiFileChooser(metadata, value)
|
|
|
|
|
|
class DateChooser(BaseChooser):
|
|
widget_class = core.DateChooser
|
|
|
|
|
|
class ColourChooser(BaseChooser):
|
|
widget_class = core.ColourChooser
|
|
|
|
|
|
class TimeChooser(BaseChooser):
|
|
widget_class = core.TimeChooser
|