Beispiel #1
0
 def __init__(self, session, args=None):
     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)
Beispiel #2
0
 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()
Beispiel #3
0
 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()
Beispiel #4
0
	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()
Beispiel #5
0
	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)
Beispiel #6
0
 def __init__(self, session, args=None):
     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)
Beispiel #7
0
	def __init__(self, session, args = None):
		self.skin = ShellStarter.skin
		Screen.__init__(self, session)
		eTuxtxtApp.getInstance().appClosed.get().append(self.appClosed)
		eTuxtxtApp.getInstance().startUi()
Beispiel #8
0
 def handleScreenMode(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_MINUS)
Beispiel #9
0
 def handleTransparent(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_MUTE)
Beispiel #10
0
 def handleKeyYellow(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_YELLOW)
Beispiel #11
0
 def handleKeyBlue(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_BLUE)
Beispiel #12
0
 def handlePrevPage(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_DOWN)
Beispiel #13
0
 def handleTransparent(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_MUTE)
Beispiel #14
0
 def handleScreenMode(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_MINUS)
Beispiel #15
0
 def handleHint(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_HELP)
Beispiel #16
0
 def handleKeyBlue(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_BLUE)
Beispiel #17
0
 def handleZoom(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_PLUS)
Beispiel #18
0
 def handleKeyRed(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_RED)
Beispiel #19
0
 def handleKeyYellow(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_YELLOW)
Beispiel #20
0
 def handleKeyGreen(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_GREEN)
Beispiel #21
0
 def handleNextPage(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_UP)
Beispiel #22
0
 def handleKeyMenu(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_MENU)
Beispiel #23
0
 def handlePrevPage(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_DOWN)
Beispiel #24
0
 def handleKeyExit(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_HOME)
Beispiel #25
0
 def handleKeyOk(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_OK)
Beispiel #26
0
def main(session, **kwargs):
    eTuxtxtApp.getInstance().startUi()
Beispiel #27
0
 def handleKeyGreen(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_GREEN)
Beispiel #28
0
 def handleKeyMenu(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_MENU)
Beispiel #29
0
 def handleKeyRed(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_RED)
Beispiel #30
0
def main(session, **kwargs):
	eTuxtxtApp.getInstance().startUi()
Beispiel #31
0
 def handleZoom(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_PLUS)
Beispiel #32
0
 def handlePrevSubPage(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_LEFT)
Beispiel #33
0
 def handleHint(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_HELP)
Beispiel #34
0
 def handleKeyOk(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_OK)
Beispiel #35
0
 def handleKeyExit(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_HOME)
Beispiel #36
0
 def handleNumberKey(self, key):
     eTuxtxtApp.getInstance().handleKey(key)
Beispiel #37
0
 def handleNumberKey(self, key):
     eTuxtxtApp.getInstance().handleKey(key)
Beispiel #38
0
 def handleNextSubPage(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_RIGHT)
Beispiel #39
0
 def handleNextSubPage(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_RIGHT)
Beispiel #40
0
 def handlePrevSubPage(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_LEFT)
Beispiel #41
0
 def handleNextPage(self):
     eTuxtxtApp.getInstance().handleKey(RcCode.RC_UP)
Beispiel #42
0
	def appClosed(self):
		eTuxtxtApp.getInstance().appClosed.get().remove(self.appClosed)
		#force redraw
		dsk = getDesktop(0)
		dsk.resize(dsk.size())
		self.close()