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.

13 lines
357 B

  1. from gooey.gui.components.widgets.dropdown import Dropdown
  2. from gooey.gui import formatters
  3. class Counter(Dropdown):
  4. def setValue(self, value):
  5. index = self._meta['choices'].index(value) + 1
  6. self.widget.SetSelection(index)
  7. def formatOutput(self, metadata, value):
  8. return formatters.counter(metadata, value)