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.

40 lines
892 B

  1. from gooey.gui.components.widgets import core
  2. from gooey.gui.components.widgets.bases import TextContainer, BaseChooser
  3. __ALL__ = [
  4. 'FileChooser',
  5. 'FileSaver',
  6. 'DirChooser',
  7. 'MultiDirChooser',
  8. 'DateChooser'
  9. ]
  10. class FileChooser(BaseChooser):
  11. # todo: allow wildcard from argparse
  12. widget_class = core.FileChooser
  13. class MultiFileChooser(BaseChooser):
  14. # todo: allow wildcard from argparse
  15. widget_class = core.MultiFileChooser
  16. class FileSaver(BaseChooser):
  17. # todo: allow wildcard
  18. widget_class = core.FileSaver
  19. class DirChooser(BaseChooser):
  20. # todo: allow wildcard
  21. widget_class = core.DirChooser
  22. class MultiDirChooser(BaseChooser):
  23. # todo: allow wildcard
  24. widget_class = core.MultiDirChooser
  25. class DateChooser(BaseChooser):
  26. # todo: allow wildcard
  27. widget_class = core.DateChooser