aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Input.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-08-24 12:16:56 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-08-24 12:16:56 +0000
commit65e19746f08f1287005861692322cdf868b06dc6 (patch)
tree67674e5b2a111f7674f80b3957e10358b914b5d5 /lib/python/Components/Input.py
parente09309bd7f69dbc98f471e28e01e2ad21ab7a757 (diff)
downloadenigma2-65e19746f08f1287005861692322cdf868b06dc6.tar.gz
enigma2-65e19746f08f1287005861692322cdf868b06dc6.zip
some NumericalInput and uncode/utf-8 fixes
Diffstat (limited to 'lib/python/Components/Input.py')
-rw-r--r--lib/python/Components/Input.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Components/Input.py b/lib/python/Components/Input.py
index e7713d6d..710ad0bc 100644
--- a/lib/python/Components/Input.py
+++ b/lib/python/Components/Input.py
@@ -6,19 +6,19 @@ from enigma import eLabel
from Tools.NumericalTextInput import NumericalTextInput
-class Input(VariableText, HTMLComponent, GUIComponent):
+class Input(VariableText, HTMLComponent, GUIComponent, NumericalTextInput):
TEXT = 0
PIN = 1
NUMBER = 2
def __init__(self, text="", maxSize = False, type = TEXT):
+ NumericalTextInput.__init__(self, self.right)
GUIComponent.__init__(self)
VariableText.__init__(self)
self.type = type
self.maxSize = maxSize
self.currPos = 0
self.overwrite = 0
- self.numericalTextInput = NumericalTextInput(self.right)
self.setText(text)
def update(self):
@@ -122,7 +122,7 @@ class Input(VariableText, HTMLComponent, GUIComponent):
def number(self, number):
if self.type == self.TEXT:
- newChar = self.numericalTextInput.getKey(number)
+ newChar = self.getKey(number)
elif self.type == self.PIN or self.type == self.NUMBER:
newChar = str(number)
self.Text = self.Text[0:self.currPos] + newChar + self.Text[self.currPos + 1:]