From d19d18a79e0352485851e372442d2ae87dbbd171 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 3 Sep 2009 14:30:40 +0200 Subject: [PATCH] Add 0 to NumericalTextInputHelpDialog. Check your plugins if the larger help matrix still fits into your screens. --- data/skin_default.xml | 9 ++++++--- lib/python/Screens/NumericalTextInputHelpDialog.py | 8 +++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/data/skin_default.xml b/data/skin_default.xml index 3c6d67fc..330c31d4 100644 --- a/data/skin_default.xml +++ b/data/skin_default.xml @@ -637,8 +637,8 @@ self.instance.move(ePoint(orgpos.x() + (orgwidth - newwidth)/2, orgpos.y())) - - + + @@ -648,6 +648,9 @@ self.instance.move(ePoint(orgpos.x() + (orgwidth - newwidth)/2, orgpos.y())) + + + @@ -967,7 +970,7 @@ self.instance.move(ePoint(orgpos.x() + (orgwidth - newwidth)/2, orgpos.y())) - + 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 -- 2.30.2