X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FScreens%2FNumericalTextInputHelpDialog.py;h=de8e8d6604bb75e8adfe503a9b76120d7f84cf50;hb=46fd0ceb0b4850ffa9f2f3e1efd42b914eeef748;hp=e097958717226ce7161fb97f1f27849012fb050d;hpb=bce53d4a67d1655a496eebe5912c8573e880114e;p=vuplus_dvbapp diff --git a/lib/python/Screens/NumericalTextInputHelpDialog.py b/lib/python/Screens/NumericalTextInputHelpDialog.py index e097958..de8e8d6 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