X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/823e8897d98c90e114bf68c9af754c72fdd9d411..3ff9ec2869649c38251899fc0fbe9c651a061dfc:/lib/python/Components/TextInput.py diff --git a/lib/python/Components/TextInput.py b/lib/python/Components/TextInput.py index 98b440c5..e69de29b 100644 --- a/lib/python/Components/TextInput.py +++ b/lib/python/Components/TextInput.py @@ -1,31 +0,0 @@ -from HTMLComponent import * -from GUIComponent import * - -from tools import CONNECT, DISCONNECT - -from enigma import eInput, eInputContentString - -class TextInput(HTMLComponent, GUIComponent): - def __init__(self): - GUIComponent.__init__(self) - self.content = eInputContentString() - - def contentChanged(self): - print "content changed to %s!" % (self.getText()) - - def getText(self): - return self.content.getText() - - def setText(self, text): - # TODO : support unicode! - self.content.setText(str(text)) - - def GUIcreate(self, parent, skindata): - self.instance = eInput(parent) - CONNECT(self.instance.changed, self.contentChanged) - self.instance.setContent(self.content) - - def GUIdelete(self): - DISCONNECT(self.instance.changed, self.contentChanged) - self.instance.setContent(None) - self.instance = None