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