from Screen import Screen
+from Components.config import config, ConfigClock
from Components.Button import Button
from Components.Pixmap import Pixmap
from Components.Label import Label
-from Components.EpgList import *
+from Components.EpgList import EPGList, EPG_TYPE_SINGLE, EPG_TYPE_SIMILAR, EPG_TYPE_MULTI
from Components.ActionMap import ActionMap
-from Components.ScrollLabel import ScrollLabel
from Screens.EventView import EventViewSimple
from TimeDateInput import TimeDateInput
from enigma import eServiceReference
-from Screens.FixedMenu import FixedMenu
from RecordTimer import RecordTimerEntry, parseEvent
-from TimerEdit import TimerEditList
from TimerEntry import TimerEntry
from ServiceReference import ServiceReference
from time import localtime, time
-import xml.dom.minidom
+mepg_config_initialized = False
class EPGSelection(Screen):
def __init__(self, session, service, zapFunc=None, eventid=None, bouquetChangeCB=None):
self["key_green"] = Button(_("Add timer"))
self["list"] = EPGList(type = self.type, selChangedCB = self.onSelectionChanged, timer = self.session.nav.RecordTimer)
- class ChannelActionMap(ActionMap):
- def action(self, contexts, action):
- return ActionMap.action(self, contexts, action)
-
- self["actions"] = ChannelActionMap(["EPGSelectActions", "OkCancelActions"],
+ self["actions"] = ActionMap(["EPGSelectActions", "OkCancelActions"],
{
"cancel": self.closeScreen,
"ok": self.eventSelected,
def enterDateTime(self):
if self.type == EPG_TYPE_MULTI:
- self.session.openWithCallback(self.onDateTimeInputClosed, TimeDateInput)
+ global mepg_config_initialized
+ if not mepg_config_initialized:
+ config.misc.prev_mepg_time=ConfigClock(default = time())
+ mepg_config_initialized = True
+ self.session.openWithCallback(self.onDateTimeInputClosed, TimeDateInput, config.misc.prev_mepg_time )
def onDateTimeInputClosed(self, ret):
if len(ret) > 1: