def onShow(self): if self.instance: if self.Size: self.instance.resize(self.Size) if self.Position: self.instance.move(self.Position) self.hidePip and PipPigMode(True)
def appClosed(self): eTuxtxtApp.getInstance().appClosed.get().remove(self.appClosed) #force redraw dsk = getDesktop(0) dsk.resize(dsk.size()) PipPigMode(False) if hasattr(self.session, "pip"): self.session.pip.relocate() self.close()
def onShow(self): if self.instance: config.plugins.KravenFHD.PigMenuActive.value = True config.plugins.KravenFHD.PigMenuActive.save() if self.Size: self.instance.resize(self.Size) if self.Position: self.instance.move(self.Position) self.hidePip and PipPigMode(True)
def appClosed(self): eTuxtxtApp.getInstance().appClosed.get().remove(self.appClosed) #force redraw dsk = getDesktop(0) dsk.resize(dsk.size()) PipPigMode(False) if hasattr(self.session, "pip"): self.session.pip.relocate() try: # config.osd.alpha may not be available everywhere self.setOSDAlpha(config.osd.alpha) except: pass self.close()
def __init__(self, session, args = None): try: # new config.osd.alpha_teletext may not be available everywhere self.setOSDAlpha(config.osd.alpha_teletext) except: pass try: from Components.UsageConfig import patchTuxtxtConfFile if config.usage.tuxtxt_ConfFileHasBeenPatched.value == False: patchTuxtxtConfFile(config.usage.tuxtxt_ConfFileHasBeenPatched) except: pass self.skin = ShellStarter.skin Screen.__init__(self, session) self.session = session eTuxtxtApp.getInstance().appClosed.get().append(self.appClosed) eTuxtxtApp.getInstance().startUi() self["actions"] = NumberActionMap(["TeletextActions","NumberActions"], { "0": self.handleNumberKey, "1": self.handleNumberKey, "2": self.handleNumberKey, "3": self.handleNumberKey, "4": self.handleNumberKey, "5": self.handleNumberKey, "6": self.handleNumberKey, "7": self.handleNumberKey, "8": self.handleNumberKey, "9": self.handleNumberKey, "nextSubPage": self.handleNextSubPage, "prevSubPage": self.handlePrevSubPage, "nextPage": self.handleNextPage, "prevPage": self.handlePrevPage, "ok": self.handleKeyOk, "transparent": self.handleTransparent, "green": self.handleKeyGreen, "yellow": self.handleKeyYellow, "red": self.handleKeyRed, "blue": self.handleKeyBlue, "zoomMode": self.handleZoom, "screenMode": self.handleScreenMode, "hint": self.handleHint, "menu": self.handleKeyMenu, "exit": self.handleKeyExit, }) PipPigMode(True)
def onHide(self): if self.instance: self.preWidgetRemove(self.instance) self.hidePip and PipPigMode(False)
def onHide(self): if self.instance: self.preWidgetRemove(self.instance) self.hidePip and PipPigMode(False) config.plugins.KravenFHD.PigMenuActive.value = False config.plugins.KravenFHD.PigMenuActive.save()