from TimerEdit import TimerEditList
from TimerEntry import TimerEntry
from ServiceReference import ServiceReference
+from Components.config import config, currentConfigSelectionElement
import xml.dom.minidom
self["actions"] = ChannelActionMap(["EPGSelectActions", "OkCancelActions"],
{
- "cancel": self.close,
+ "cancel": self.closeScreen,
"ok": self.eventSelected,
"timerAdd": self.timerAdd,
"yellow": self.yellowButtonPressed,
- "blue": self.blueButtonPressed
+ "blue": self.blueButtonPressed,
+ "info": self.infoKeyPressed
})
self["actions"].csel = self
self.onLayoutFinish.append(self.onCreate)
+ def infoKeyPressed(self):
+ if currentConfigSelectionElement(config.usage.epgtoggle) == "yes":
+ self.close(True)
+ else:
+ self.close(False)
+
+ def closeScreen(self):
+ self.close(False)
+
+
#just used in multipeg
def onCreate(self):
l = self["list"]
self.session.openWithCallback(self.timerEditFinished, TimerEntry, newEntry)
def timerEditFinished(self, answer):
- if (answer[0]):
+ if answer[0]:
self.session.nav.RecordTimer.record(answer[1])
else:
print "Timeredit aborted"