git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
better cast
[enigma2.git]
/
lib
/
python
/
Components
/
Input.py
diff --git
a/lib/python/Components/Input.py
b/lib/python/Components/Input.py
index a3ab764e8840016b4e399e2c4ccc007750f0f429..0bd13059e3ad69d75bcb7dbb4a0ce26afcab7309 100644
(file)
--- a/
lib/python/Components/Input.py
+++ b/
lib/python/Components/Input.py
@@
-6,7
+6,7
@@
from enigma import eLabel
from Tools.NumericalTextInput import NumericalTextInput
from Tools.NumericalTextInput import NumericalTextInput
-class Input(
HTMLComponent, GUIComponent, VariableTex
t):
+class Input(
VariableText, HTMLComponent, GUIComponen
t):
TEXT = 0
PIN = 1
NUMBER = 2
TEXT = 0
PIN = 1
NUMBER = 2
@@
-54,7
+54,7
@@
class Input(HTMLComponent, GUIComponent, VariableText):
self.update()
def up(self):
self.update()
def up(self):
- if self.text[self.currPos] == "9":
+ if self.text[self.currPos] == "9"
or self.text[self.currPos] == " "
:
newNumber = "0"
else:
newNumber = str(int(self.text[self.currPos]) + 1)
newNumber = "0"
else:
newNumber = str(int(self.text[self.currPos]) + 1)
@@
-62,10
+62,11
@@
class Input(HTMLComponent, GUIComponent, VariableText):
self.update()
def down(self):
self.update()
def down(self):
- if self.text[self.currPos] == "0":
+ if self.text[self.currPos] == "0"
or self.text[self.currPos] == " "
:
newNumber = "9"
else:
newNumber = str(int(self.text[self.currPos]) - 1)
newNumber = "9"
else:
newNumber = str(int(self.text[self.currPos]) - 1)
+
self.text = self.text[0:self.currPos] + newNumber + self.text[self.currPos + 1:]
self.update()
self.text = self.text[0:self.currPos] + newNumber + self.text[self.currPos + 1:]
self.update()