added an example for weekday selection
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 7 Nov 2005 23:18:24 +0000 (23:18 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 7 Nov 2005 23:18:24 +0000 (23:18 +0000)
lib/python/Components/config.py
lib/python/Screens/TimerEntry.py

index a28c40c..dfd5d59 100644 (file)
@@ -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()    
 
index f09a16b..91e9673 100644 (file)
@@ -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)