diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-10-02 23:57:11 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-10-02 23:57:11 +0000 |
| commit | 2623513b3de1ab9f89bac582ae30c39b4a8b9505 (patch) | |
| tree | 24aed96e8c4184bb4d0a469859131cee5e606780 /lib/python/Screens/NumericalTextInputHelpDialog.py | |
| parent | aa414b363fd57de608f745266f3145e53bd775e8 (diff) | |
| download | enigma2-2623513b3de1ab9f89bac582ae30c39b4a8b9505.tar.gz enigma2-2623513b3de1ab9f89bac582ae30c39b4a8b9505.zip | |
add NumericalTextInputHelpDialog
Diffstat (limited to 'lib/python/Screens/NumericalTextInputHelpDialog.py')
| -rw-r--r-- | lib/python/Screens/NumericalTextInputHelpDialog.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/python/Screens/NumericalTextInputHelpDialog.py b/lib/python/Screens/NumericalTextInputHelpDialog.py new file mode 100644 index 00000000..39c644b9 --- /dev/null +++ b/lib/python/Screens/NumericalTextInputHelpDialog.py @@ -0,0 +1,16 @@ +from Screen import Screen +from Components.Label import Label + +class NumericalTextInputHelpDialog(Screen): + def __init__(self, session, textinput): + Screen.__init__(self, session) + for x in range(1, 10): + 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: + self["key%d" % self.last_marked].setMarkedPos(-1) + if 1 <= textinput.lastKey <= 9: + self["key%d" % textinput.lastKey].setMarkedPos(textinput.pos) + self.last_marked = textinput.lastKey |
