From 083461688d74365ad6e36a1877758a7a0d1f76ca Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Mon, 7 Nov 2005 23:18:24 +0000 Subject: [PATCH] added an example for weekday selection --- lib/python/Components/config.py | 2 +- lib/python/Screens/TimerEntry.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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) -- 2.30.2