diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2007-10-28 09:22:33 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2007-10-28 09:22:33 +0000 |
| commit | 468f9d6d40262c6cc75a06afd2dfa232bd91bfd9 (patch) | |
| tree | ca09191efe4789e7084845e964c80b4e860262d0 /lib/python/Screens/ParentalControlSetup.py | |
| parent | 306bdc11b9e1bfa625bc57c51edc8fd042d0ba9d (diff) | |
| download | enigma2-468f9d6d40262c6cc75a06afd2dfa232bd91bfd9.tar.gz enigma2-468f9d6d40262c6cc75a06afd2dfa232bd91bfd9.zip | |
parental control:
automatically wrap to validation pin entry in pin changing dialog when 4 figures were entered
leave dialog when 4 figures were entered in the validation pin entry
Diffstat (limited to 'lib/python/Screens/ParentalControlSetup.py')
| -rw-r--r-- | lib/python/Screens/ParentalControlSetup.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/python/Screens/ParentalControlSetup.py b/lib/python/Screens/ParentalControlSetup.py index abe09af0..f5f48e25 100644 --- a/lib/python/Screens/ParentalControlSetup.py +++ b/lib/python/Screens/ParentalControlSetup.py @@ -230,6 +230,8 @@ class ParentalControlChangePin(Screen, ConfigListScreen, ProtectedScreen): self.list = [] self.pin1 = ConfigPIN(default = 1111, censor = "*") self.pin2 = ConfigPIN(default = 1112, censor = "*") + self.pin1.addEndNotifier(boundFunction(self.valueChanged, 1)) + self.pin2.addEndNotifier(boundFunction(self.valueChanged, 2)) self.list.append(getConfigListEntry(_("New pin"), NoSave(self.pin1))) self.list.append(getConfigListEntry(_("Reenter new pin"), NoSave(self.pin2))) ConfigListScreen.__init__(self, self.list) @@ -243,6 +245,12 @@ class ParentalControlChangePin(Screen, ConfigListScreen, ProtectedScreen): "cancel": self.cancel, }, -1) + def valueChanged(self, pin, value): + if pin == 1: + self["config"].setCurrentIndex(1) + elif pin == 2: + self.keyOK() + def getPinText(self): return _("Please enter the old pin code") |
