def __init__(self, session, addon, lst_items): self.addon = addon contentHandler = VideoAddonContentHandler(session, self, addon.provider) BaseContentScreen.__init__(self, session, contentHandler, lst_items) # include DownloadList DownloadList.__init__(self) # include TipList TipBar.__init__(self, [self.CSFD_TIP, self.CONTEXT_TIP, self.INFO_TIP], startOnShown=True) self["key_red"] = Label("") self["key_green"] = Label(_("Downloads")) self["key_yellow"] = Label(_("Shortcuts")) self["key_blue"] = Label(_("Settings")) self["actions"] = ActionMap(["archivCZSKActions"], { "ok": self.ok, "up": self.up, "down": self.down, "cancel": self.cancel, "green" : self.openAddonDownloads, "blue": self.openAddonSettings, "yellow": self.openAddonShortcuts, "info": self.openInfo, "menu": self.menu, "csfd": self.openCSFD }, -2) #self.onUpdateGUI.append(self.updateFullTitle) self.onLayoutFinish.append(self.setWindowTitle)
def __init__(self, session, addon, lst_items): self.addon = addon contentHandler = VideoAddonContentHandler(session, self, addon.provider) BaseContentScreen.__init__(self, session, contentHandler, lst_items) # include DownloadList DownloadList.__init__(self) self.updateGUITimer = eTimer() self.updateGUITimer_conn = eConnectCallback( self.updateGUITimer.timeout, self.updateAddonGUI) self.onUpdateGUI.append(self.changeAddon) self.onClose.append(self.__onClose) #settigns self.showImageEnabled = config.plugins.archivCZSK.downloadPoster.getValue( ) self.maxSavedImages = int( config.plugins.archivCZSK.posterImageMax.getValue()) self.imagePosterDir = os.path.join( config.plugins.archivCZSK.posterPath.getValue(), 'archivczsk_poster') self.noImage = os.path.join(settings.PLUGIN_PATH, 'gui', 'icon', 'no_movie_image.png') # include TipList TipBar.__init__(self, [self.CSFD_TIP, self.CONTEXT_TIP, self.INFO_TIP], startOnShown=True) self["key_red"] = Label(_("Changelog")) self["key_green"] = Label(_("Downloads")) self["key_yellow"] = Label(_("Shortcuts")) self["key_blue"] = Label(_("Settings")) self["movie_poster_image"] = Pixmap() poster_processing = PosterProcessing(self.maxSavedImages, self.imagePosterDir) self.poster = PosterPixmapHandler(self["movie_poster_image"], poster_processing, self.noImage) self["movie_rating"] = Label("") self["movie_duration"] = Label("") self["movie_plot"] = Label("") self["actions"] = ActionMap( ["archivCZSKActions"], { "ok": self.ok, "up": self.up, "down": self.down, "cancel": self.cancel, "red": self.openChangelog, "green": self.openAddonDownloads, "blue": self.openAddonSettings, "yellow": self.openAddonShortcuts, "info": self.openInfo, "menu": self.menu, "csfd": self.openCSFD }, -2) #self.onUpdateGUI.append(self.updateFullTitle) self.onLayoutFinish.append(self.setWindowTitle)