def __init__(self, session):
		Renderer.__init__(self)
		
		self.showiframe = Showiframe()
		self.session = session
		self.poll_timer = eTimer()
		self.poll_timer.callback.append(self.poll)
Example #2
0
    def __init__(self,
                 session,
                 libraryName,
                 loadLibrary,
                 playEntry,
                 viewName,
                 select=None,
                 sort=None,
                 filter=None):

        self.showiframe = Showiframe()

        DMC_View.__init__(self, session, libraryName, loadLibrary, playEntry,
                          viewName, select, sort, filter)

        self["poster"] = Pixmap()
        self["title"] = Label()

        if self.APILevel >= 5:
            self["shortDescriptionContainer"] = Label()
            self["cnt_poster"] = Pixmap()
            self["cnt_title"] = Label()
            self["cnt_shortDescription"] = Label()

        self["key_red"] = StaticText(_("Sort: ") + _("Default"))
        self["key_green"] = StaticText("")
        self["key_yellow"] = StaticText("")
        self["key_blue"] = StaticText(self.viewName[0])

        try:
            from StillPicture import StillPicture
            self["backdrop"] = StillPicture(session)
            self.ShowStillPicture = True
        except Exception, ex:
            printl("Exception: " + str(ex), self)
    def __init__(self,
                 session,
                 libraryName,
                 loadLibrary,
                 playEntry,
                 viewName,
                 select=None,
                 sort=None,
                 filter=None):

        self.showiframe = Showiframe()

        DMC_View.__init__(self, session, libraryName, loadLibrary, playEntry,
                          viewName, select, sort, filter)

        self["poster"] = Pixmap()
        self["title"] = Label()
        if self.APILevel == 1:
            self["otitle"] = Label()
        self["tag"] = Label()
        self["shortDescription"] = Label()
        if self.APILevel == 1:
            self["director"] = Label()
            self["writer"] = Label()
        self["genre"] = Label()
        self["year"] = Label()
        self["runtime"] = Label()

        if self.APILevel >= 2:
            self["total"] = Label()
            self["current"] = Label()

        if self.APILevel >= 5:
            self["quality"] = Label()
            self["sound"] = Label()

        if self.APILevel >= 7:
            printl("we are at api level 7", self, "D")
            self["studio"] = Label()
            self["mpaa"] = Label()

        self.BackdropDynamic = 1
        if self.APILevel >= 6:
            try:
                self.BackdropDynamic = int(DataElement().getDataPreloading(
                    self, "backdrop_dynamic"))
                self["backdrop_dynamic"] = DataElement()
            except Exception, ex:
                printl("Exception(" + str(type(ex)) + "): " + str(ex), self,
                       "W")
                self.BackdropDynamic = 1