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 | |
| parent | 5de16a03d348df3a90dd0c768e0d7fa3d7a82fc1 (diff) | |
| download | enigma2-76ab06c06bdf77f0b0cecd225367862ef0de0d2f.tar.gz enigma2-76ab06c06bdf77f0b0cecd225367862ef0de0d2f.zip | |
improve text editing. Patch by Anders Holst
Diffstat (limited to 'lib/python/Screens')
| -rw-r--r-- | lib/python/Screens/ChannelSelection.py | 4 | ||||
| -rw-r--r-- | lib/python/Screens/InputBox.py | 13 | ||||
| -rw-r--r-- | lib/python/Screens/TimerEntry.py | 4 |
3 files changed, 12 insertions, 9 deletions
diff --git a/lib/python/Screens/ChannelSelection.py b/lib/python/Screens/ChannelSelection.py index 25765164..5047d6df 100644 --- a/lib/python/Screens/ChannelSelection.py +++ b/lib/python/Screens/ChannelSelection.py @@ -159,7 +159,7 @@ class ChannelContextMenu(Screen): self.session.open( ServiceInfo, self.csel.getCurrentSelection() ) def showBouquetInputBox(self): - self.session.openWithCallback(self.bouquetInputCallback, InputBox, title=_("Please enter a name for the new bouquet"), text="bouquetname", maxSize=False, type=Input.TEXT) + self.session.openWithCallback(self.bouquetInputCallback, InputBox, title=_("Please enter a name for the new bouquet"), text="bouquetname", maxSize=False, visible_width = 56, type=Input.TEXT) def bouquetInputCallback(self, bouquet): if bouquet is not None: @@ -205,7 +205,7 @@ class ChannelContextMenu(Screen): self.close() def showMarkerInputBox(self): - self.session.openWithCallback(self.markerInputCallback, InputBox, title=_("Please enter a name for the new marker"), text="markername", maxSize=False, type=Input.TEXT) + self.session.openWithCallback(self.markerInputCallback, InputBox, title=_("Please enter a name for the new marker"), text="markername", maxSize=False, visible_width = 56, type=Input.TEXT) def markerInputCallback(self, marker): if marker is not None: 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): diff --git a/lib/python/Screens/TimerEntry.py b/lib/python/Screens/TimerEntry.py index faf4f304..c6779e73 100644 --- a/lib/python/Screens/TimerEntry.py +++ b/lib/python/Screens/TimerEntry.py @@ -84,8 +84,8 @@ class TimerEntry(Screen, ConfigListScreen): self.timerentry_justplay = ConfigSelection(choices = [("zap", _("zap")), ("record", _("record"))], default = {0: "record", 1: "zap"}[justplay]) self.timerentry_afterevent = ConfigSelection(choices = [("nothing", _("do nothing")), ("standby", _("go to standby")), ("deepstandby", _("go to deep standby"))], default = afterevent) self.timerentry_type = ConfigSelection(choices = [("once",_("once")), ("repeated", _("repeated"))], default = type) - self.timerentry_name = ConfigText(default = self.timer.name, fixed_size = False) - self.timerentry_description = ConfigText(default = self.timer.description, fixed_size = False) + self.timerentry_name = ConfigText(default = self.timer.name, visible_width = 50, fixed_size = False) + self.timerentry_description = ConfigText(default = self.timer.description, visible_width = 50, fixed_size = False) self.timerentry_repeated = ConfigSelection(default = repeated, choices = [("daily", _("daily")), ("weekly", _("weekly")), ("weekdays", _("Mon-Fri")), ("user", _("user defined"))]) |
