示例#1
0
	def __init__(self, type=EPG_TYPE_SINGLE, selChangedCB=None, timer=None, time_epoch=120, overjump_empty=False, graphic=False):
		if type != EPG_TYPE_SINGLE:
			print("[EPGList] Warning: EPGList does not support type '%s'" % type)
			print("          Attempting to continue in single EPG mode")
		EPGListSingle.__init__(self, Screens.InfoBar.InfoBar.instance.session, config.epgselection.single, selChangedCB)

		# Attributes for backwards compatibility.
		self.eventFontSizeSingle = self.eventFontSize
示例#2
0
    def __init__(self,
                 type=EPG_TYPE_SINGLE,
                 selChangedCB=None,
                 timer=None,
                 time_epoch=120,
                 overjump_empty=False,
                 graphic=False):
        if type != EPG_TYPE_SINGLE:
            print "[EPGList] Warning: EPGList no longer supports", {
                "infobar": "EPG_TYPE_INFOBAR",
                "enhanced": "EPG_TYPE_ENHANCED",
                "graph": "EPG_TYPE_GRAPH",
                "infobargraph": "EPG_TYPE_INFOBARGRAPH",
                "multi": "EPG_TYPE_MULTI",
                None: "EPGtype == None"
            }.get(type, type)
            print "          attempting to continue in single EPG mode"
        EPGListSingle.__init__(self, Screens.InfoBar.InfoBar.instance.session,
                               config.epgselection.single, selChangedCB)

        # Attributes for backwards compatibility.
        self.eventFontSizeSingle = self.eventFontSize