From: Stefan Pluecken Date: Mon, 7 Nov 2005 23:18:24 +0000 (+0000) Subject: added an example for weekday selection X-Git-Tag: 2.6.0~5420 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/083461688d74365ad6e36a1877758a7a0d1f76ca added an example for weekday selection --- diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index a28c40ca..dfd5d597 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -106,7 +106,7 @@ class configDateTime: if key == config.key["nextElement"]: self.parent.value = self.parent.value + self.parent.vals[1] - self.checkValues() + self.checkValues() self.parent.change() diff --git a/lib/python/Screens/TimerEntry.py b/lib/python/Screens/TimerEntry.py index f09a16b2..91e96732 100644 --- a/lib/python/Screens/TimerEntry.py +++ b/lib/python/Screens/TimerEntry.py @@ -41,12 +41,14 @@ class TimerEntry(Screen): config.timerentry.date = configElement_nonSave("config.timerentry.date", configDateTime, time(), ("%d.%B %Y", 86400)) config.timerentry.time = configElement_nonSave("config.timerentry.time", configDateTime, time(), ("%H:%M", 60)) + config.timerentry.weekday = configElement_nonSave("config.timerentry.weekday", configDateTime, time(), ("%A", 86400)) def createSetup(self): self.list = [] self.list.append(getConfigListEntry("Date", config.timerentry.date)) - self.list.append(getConfigListEntry("Time", config.timerentry.time)) + self.list.append(getConfigListEntry("Time", config.timerentry.time)) + self.list.append(getConfigListEntry("Weekday", config.timerentry.weekday)) self["config"].list = self.list self["config"].l.setList(self.list)