+ self.onShown.append(self.updateState)
+
+ def up(self):
+ self["timerlist"].instance.moveSelection(self["timerlist"].instance.moveUp)
+ self.updateState()
+
+ def down(self):
+ self["timerlist"].instance.moveSelection(self["timerlist"].instance.moveDown)
+ self.updateState()
+
+ def left(self):
+ self["timerlist"].instance.moveSelection(self["timerlist"].instance.pageUp)
+ self.updateState()
+
+ def right(self):
+ self["timerlist"].instance.moveSelection(self["timerlist"].instance.pageDown)
+ self.updateState()
+
+ def toggleDisabledState(self):
+ self["timerlist"].getCurrent()[0].disabled = not self["timerlist"].getCurrent()[0].disabled
+ self.updateState()
+ self.refill()
+
+ def updateState(self):
+ if self["timerlist"].getCurrent()[0].disabled:
+ self["key_yellow"].setText(_("disable"))
+ else:
+ self["key_yellow"].setText(_("enable"))
+ self["key_yellow"].instance.invalidate()