diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2007-11-28 13:07:43 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2007-11-28 13:07:43 +0000 |
| commit | 76ab06c06bdf77f0b0cecd225367862ef0de0d2f (patch) | |
| tree | 5a0c44fbda7cd123261afb39549ef89740a317a5 /lib/python/Screens/InputBox.py | |
| parent | 5de16a03d348df3a90dd0c768e0d7fa3d7a82fc1 (diff) | |
| download | enigma2-76ab06c06bdf77f0b0cecd225367862ef0de0d2f.tar.gz enigma2-76ab06c06bdf77f0b0cecd225367862ef0de0d2f.zip | |
improve text editing. Patch by Anders Holst
Diffstat (limited to 'lib/python/Screens/InputBox.py')
| -rw-r--r-- | lib/python/Screens/InputBox.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/python/Screens/InputBox.py b/lib/python/Screens/InputBox.py index 6cdb42ee..55334d2f 100644 --- a/lib/python/Screens/InputBox.py +++ b/lib/python/Screens/InputBox.py @@ -22,7 +22,6 @@ class InputBox(Screen): "back": self.cancel, "left": self.keyLeft, "right": self.keyRight, - "delete": self.keyDelete, "moveLeft": self.keyLeft, "moveRight": self.keyRight, "moveHome": self.keyHome, @@ -88,7 +87,7 @@ class InputBox(Screen): class PinInput(InputBox): def __init__(self, session, service = "", triesEntry = None, pinList = [], *args, **kwargs): - InputBox.__init__(self, session = session, text="9876", maxSize=True, type=Input.PIN, *args, **kwargs) + InputBox.__init__(self, session = session, text=" ", maxSize=True, type=Input.PIN, *args, **kwargs) self.waitTime = 15 @@ -117,7 +116,7 @@ class PinInput(InputBox): InputBox.keyNumberGlobal(self, number) def checkPin(self, pin): - if pin is not None and int(pin) in self.pinList: + if pin is not None and pin.find(" ") == -1 and int(pin) in self.pinList: return True return False @@ -136,18 +135,22 @@ class PinInput(InputBox): pass def closePinWrong(self, *args): + rcinput = eRCInput.getInstance() + rcinput.setKeyboardMode(rcinput.kmNone) print "args:", args self.close(False) def closePinCorrect(self, *args): + rcinput = eRCInput.getInstance() + rcinput.setKeyboardMode(rcinput.kmNone) self.close(True) def closePinCancel(self, *args): + rcinput = eRCInput.getInstance() + rcinput.setKeyboardMode(rcinput.kmNone) self.close(None) def cancel(self): - rcinput = eRCInput.getInstance() - rcinput.setKeyboardMode(rcinput.kmNone) self.closePinCancel() def getTries(self): |
