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

import wx
from gooey.gui.components.widgets.bases import TextContainer
from gooey.gui import formatters, events
from gooey.gui.components.widgets.core.text_input import TextInput
from gooey.gui.pubsub import pub
from gooey.util.functional import getin
class TextField(TextContainer):
widget_class = TextInput
def getWidgetValue(self):
return self.widget.getValue()
def setValue(self, value):
self.widget.setValue(str(value))
def formatOutput(self, metatdata, value):
return formatters.general(metatdata, value)