diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-09-03 16:34:21 +0200 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-09-03 16:34:21 +0200 |
| commit | eb7939bd2988c40f56af80a64a557e2c41a896c9 (patch) | |
| tree | dce5e60946dc28ca09e543c8bdf1a12521f44028 /lib/python/Screens/NumericalTextInputHelpDialog.py | |
| parent | 29b7c8d9920725729d6acb5b7795cd65f8cae00a (diff) | |
| parent | a053f35db7edbd467bf01b9054d90dad3ce12803 (diff) | |
| download | enigma2-eb7939bd2988c40f56af80a64a557e2c41a896c9.tar.gz enigma2-eb7939bd2988c40f56af80a64a557e2c41a896c9.zip | |
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Screens/NumericalTextInputHelpDialog.py')
| -rw-r--r-- | lib/python/Screens/NumericalTextInputHelpDialog.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/python/Screens/NumericalTextInputHelpDialog.py b/lib/python/Screens/NumericalTextInputHelpDialog.py index e0979587..de8e8d66 100644 --- a/lib/python/Screens/NumericalTextInputHelpDialog.py +++ b/lib/python/Screens/NumericalTextInputHelpDialog.py @@ -4,13 +4,15 @@ from Components.Label import Label class NumericalTextInputHelpDialog(Screen): def __init__(self, session, textinput): Screen.__init__(self, session) - for x in (1, 2, 3, 4, 5, 6, 7, 8, 9): + self["help1"] = Label(text="<") + self["help2"] = Label(text=">") + for x in (1, 2, 3, 4, 5, 6, 7, 8, 9, 0): self["key%d" % x] = Label(text=textinput.mapping[x].encode("utf-8")) self.last_marked = 0 def update(self, textinput): - if 1 <= self.last_marked <= 9: + if 0 <= self.last_marked <= 9: self["key%d" % self.last_marked].setMarkedPos(-1) - if 1 <= textinput.lastKey <= 9: + if 0 <= textinput.lastKey <= 9: self["key%d" % textinput.lastKey].setMarkedPos(textinput.pos) self.last_marked = textinput.lastKey |
