diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-19 03:19:41 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-19 03:19:41 +0000 |
| commit | b4448ddb042e5f5015125597633e368f17acbcec (patch) | |
| tree | 95d49a485f3328a5591b127d3cb82bf036128c25 /lib/python/Components/Input.py | |
| parent | 85f5c84f1e3e4d22fb1939751d39de03877b93d8 (diff) | |
| download | enigma2-b4448ddb042e5f5015125597633e368f17acbcec.tar.gz enigma2-b4448ddb042e5f5015125597633e368f17acbcec.zip | |
better marking of current cursor in Components.Input
change eLabel to being able to mark a character
Diffstat (limited to 'lib/python/Components/Input.py')
| -rw-r--r-- | lib/python/Components/Input.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/python/Components/Input.py b/lib/python/Components/Input.py index d3b06612..7ffc5c77 100644 --- a/lib/python/Components/Input.py +++ b/lib/python/Components/Input.py @@ -16,10 +16,13 @@ class Input(HTMLComponent, GUIComponent, VariableText): self.update() def update(self): - self.setText(self.text[0:self.currPos] + "_" + self.text[self.currPos] + "_" + self.text[self.currPos + 1:]) + self.setMarkedPos(self.currPos) + self.setText(self.text) + #self.setText(self.text[0:self.currPos] + "_" + self.text[self.currPos] + "_" + self.text[self.currPos + 1:]) + def createWidget(self, parent): - return eLabel(parent) + return eLabel(parent, self.currPos) def getSize(self): s = self.instance.calculateSize() |
