__init__.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. """DataLad Gooey"""
  2. __docformat__ = 'restructuredtext'
  3. import logging
  4. lgr = logging.getLogger('datalad.ext.gooey')
  5. # Defines a datalad command suite.
  6. # This variable must be bound as a setuptools entrypoint
  7. # to be found by datalad
  8. command_suite = (
  9. # description of the command suite, displayed in cmdline help
  10. "Gooey (GUI)",
  11. [
  12. ('datalad_gooey.gooey', 'Gooey'),
  13. ('datalad_gooey.askpass', 'GooeyAskPass',
  14. 'gooey-askpass', 'gooey_askpass'),
  15. ('datalad_gooey.lsdir', 'GooeyLsDir', 'gooey-lsdir', 'gooey_lsdir'),
  16. ('datalad_gooey.status_light', 'GooeyStatusLight',
  17. 'gooey-status-light', 'gooey_status_light'),
  18. ]
  19. )
  20. from datalad.support.extensions import register_config
  21. from datalad.support.constraints import EnsureChoice
  22. register_config(
  23. 'datalad.gooey.ui-mode',
  24. 'Which user interface mode to use in the application',
  25. description=\
  26. "In 'simplified' mode advanced operations operations are hidden "
  27. "in the user interface. In 'complete' mode, all functionality "
  28. 'is exposed.',
  29. type=EnsureChoice('simplified', 'complete'),
  30. default='simplified',
  31. scope='global')
  32. register_config(
  33. 'datalad.gooey.ui-theme',
  34. 'Which user interface theme to use in the application',
  35. description=\
  36. "Besides the standard 'system' theme, additional 'light' and 'dark' "
  37. "themes are available, if the `qdarktheme` package is installed.",
  38. type=EnsureChoice('system', 'light', 'dark'),
  39. default='system',
  40. scope='global')
  41. from ._version import get_versions
  42. __version__ = get_versions()['version']
  43. del get_versions