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.

20 lines
577 B

  1. import wx
  2. from gooey.gui.components.widgets.bases import TextContainer
  3. from gooey.gui import formatters, events
  4. from gooey.gui.components.widgets.core.text_input import TextInput
  5. from gooey.gui.pubsub import pub
  6. from gooey.util.functional import getin
  7. class TextField(TextContainer):
  8. widget_class = TextInput
  9. def getWidgetValue(self):
  10. return self.widget.getValue()
  11. def setValue(self, value):
  12. self.widget.setValue(str(value))
  13. def formatOutput(self, metatdata, value):
  14. return formatters.general(metatdata, value)