当前位置: 首页>>代码示例>>Python>>正文


Python ServiceStopScreen.__init__方法代码示例

本文整理汇总了Python中Screens.ServiceStopScreen.ServiceStopScreen.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ServiceStopScreen.__init__方法的具体用法?Python ServiceStopScreen.__init__怎么用?Python ServiceStopScreen.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Screens.ServiceStopScreen.ServiceStopScreen的用法示例。


在下文中一共展示了ServiceStopScreen.__init__方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from Screens.ServiceStopScreen import ServiceStopScreen [as 别名]
# 或者: from Screens.ServiceStopScreen.ServiceStopScreen import __init__ [as 别名]
	def __init__(self, session, slotid):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("Tuner settings"))
		self.list = [ ]
		ServiceStopScreen.__init__(self)
		self.stopService()
		ConfigListScreen.__init__(self, self.list)

		self["key_red"] = Label(_("Close"))
		self["key_green"] = Label(_("Save"))
		self["key_yellow"] = Label(_("Configuration mode"))
		self["key_blue"] = Label()

		self["actions"] = ActionMap(["SetupActions", "SatlistShortcutAction", "ColorActions"],
		{
			"ok": self.keyOk,
			"save": self.keySave,
			"cancel": self.keyCancel,
			"changetype": self.changeConfigurationMode,
			"nothingconnected": self.nothingConnectedShortcut,
			"red": self.keyCancel,
			"green": self.keySave,
		}, -2)

		self.slotid = slotid
		self.nim = nimmanager.nim_slots[slotid]
		self.nimConfig = self.nim.config
		self.createConfigMode()
		self.createSetup()
		self.onLayoutFinish.append(self.layoutFinished)
开发者ID:popazerty,项目名称:openvix-enigma2,代码行数:32,代码来源:Satconfig.py

示例2: __init__

# 需要导入模块: from Screens.ServiceStopScreen import ServiceStopScreen [as 别名]
# 或者: from Screens.ServiceStopScreen.ServiceStopScreen import __init__ [as 别名]
	def __init__(self, session, slotid):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("Tuner settings"))
		self.list = [ ]

		ServiceStopScreen.__init__(self)
		self.stopService()

		ConfigListScreen.__init__(self, self.list)

		self["key_red"] = StaticText(_("Close"))
		self["key_green"] = StaticText(_("Save"))

		self["actions"] = ActionMap(["SetupActions", "SatlistShortcutAction", "ColorActions"],
		{
			"ok": self.keySave,
			"cancel": self.keyCancel,
			"nothingconnected": self.nothingConnectedShortcut,
			"red": self.keyCancel,
			"green": self.keySave,
		}, -2)

		self.slotid = slotid
		self.nim = nimmanager.nim_slots[slotid]
		self.nimConfig = self.nim.config
		self.createConfigMode()
		self.createSetup()
开发者ID:HasBahCa,项目名称:enigma2,代码行数:29,代码来源:Satconfig.py

示例3: __init__

# 需要导入模块: from Screens.ServiceStopScreen import ServiceStopScreen [as 别名]
# 或者: from Screens.ServiceStopScreen.ServiceStopScreen import __init__ [as 别名]
	def __init__(self, session, slotid):
		Screen.__init__(self, session)
		self.list = [ ]
		ServiceStopScreen.__init__(self)
		self.stopService()
		ConfigListScreen.__init__(self, self.list)

		self["key_red"] = Label(_("Cancel"))
		self["key_green"] = Label(_("Save"))
		self["key_yellow"] = Label(_("Configuration mode"))
		self["key_blue"] = Label()
		self["actions"] = ActionMap(["SetupActions", "SatlistShortcutAction"],
		{
			"ok": self.keyOk,
			"save": self.keySave,
			"cancel": self.keyCancel,
			"changetype": self.changeConfigurationMode,
			"nothingconnected": self.nothingConnectedShortcut
		}, -2)

		self.slotid = slotid
		self.nim = nimmanager.nim_slots[slotid]
		self.nimConfig = self.nim.config
		self.createConfigMode()
		self.createSetup()
开发者ID:fabiussermejio,项目名称:stbgui,代码行数:27,代码来源:Satconfig.py

示例4: __init__

# 需要导入模块: from Screens.ServiceStopScreen import ServiceStopScreen [as 别名]
# 或者: from Screens.ServiceStopScreen.ServiceStopScreen import __init__ [as 别名]
	def __init__(self, session):
		Screen.__init__(self, session)
		ServiceStopScreen.__init__(self)
		self.skinName = ["DosBox"]
		self["title"] = StaticText("DosBox")
		self.__container=eConsoleAppContainer()
		self.__appClosed_conn = self.__container.appClosed.connect(self.__runFinished)
		self.stopService()
		self.__runEmu()
开发者ID:emanuel4you,项目名称:meta-emanuel,代码行数:11,代码来源:dosbox.py

示例5: __init__

# 需要导入模块: from Screens.ServiceStopScreen import ServiceStopScreen [as 别名]
# 或者: from Screens.ServiceStopScreen.ServiceStopScreen import __init__ [as 别名]
 def __init__(self, session, rom):
     Screen.__init__(self, session)
     ServiceStopScreen.__init__(self)
     self.__rom = rom
     self.skinName = ["GnuBoy"]
     self["title"] = StaticText("Gnu Boy")
     self["lcdinfo"] = StaticText(os_path.basename(self.__rom))
     self.__container = eConsoleAppContainer()
     self.__appClosed_conn = self.__container.appClosed.connect(self.__runFinished)
     self.stopService()
     self.__runEmu()
开发者ID:emanuel4you,项目名称:meta-emanuel,代码行数:13,代码来源:gnuboy.py

示例6: __init__

# 需要导入模块: from Screens.ServiceStopScreen import ServiceStopScreen [as 别名]
# 或者: from Screens.ServiceStopScreen.ServiceStopScreen import __init__ [as 别名]
	def __init__(self, session, emu="x64", rom=""):
        	self.__emu=emu
        	self.__rom=rom
		Screen.__init__(self, session)
		ServiceStopScreen.__init__(self)
		self.skinName = ["Vice"]
		self["lcdinfo"] = StaticText(self.__rom)
		self["title"] = StaticText(emu)
		self.__container=eConsoleAppContainer()
		self.__appClosed_conn = self.__container.appClosed.connect(self.__runFinished)
		self.stopService()
		self.__runEmu()
开发者ID:emanuel4you,项目名称:meta-emanuel,代码行数:14,代码来源:vice.py

示例7: __init__

# 需要导入模块: from Screens.ServiceStopScreen import ServiceStopScreen [as 别名]
# 或者: from Screens.ServiceStopScreen.ServiceStopScreen import __init__ [as 别名]
    def __init__(self, session, slotid):
        Screen.__init__(self, session)
        self.list = []

        ServiceStopScreen.__init__(self)
        self.stopService()

        ConfigListScreen.__init__(self, self.list)

        self["actions"] = ActionMap(
            ["SetupActions", "SatlistShortcutAction"],
            {"ok": self.keySave, "cancel": self.keyCancel, "nothingconnected": self.nothingConnectedShortcut},
            -2,
        )

        self.slotid = slotid
        self.nim = nimmanager.nim_slots[slotid]
        self.nimConfig = self.nim.config
        self.createConfigMode()
        self.createSetup()
开发者ID:alg810,项目名称:open-duckbox-project-sh4-pingulux-git,代码行数:22,代码来源:Satconfig.py

示例8: __init__

# 需要导入模块: from Screens.ServiceStopScreen import ServiceStopScreen [as 别名]
# 或者: from Screens.ServiceStopScreen.ServiceStopScreen import __init__ [as 别名]
	def __init__(self, session, slotid, menu_path=""):
		Screen.__init__(self, session)
		screentitle = _("Tuner settings")
		if config.usage.show_menupath.value == 'large':
			menu_path += screentitle
			title = menu_path
			self["menu_path_compressed"] = StaticText("")
		elif config.usage.show_menupath.value == 'small':
			title = screentitle
			self["menu_path_compressed"] = StaticText(menu_path + " >" if not menu_path.endswith(' / ') else menu_path[:-3] + " >" or "")
		else:
			title = screentitle
			self["menu_path_compressed"] = StaticText("")
		Screen.setTitle(self, title)

		self.list = [ ]
		ServiceStopScreen.__init__(self)
		ConfigListScreen.__init__(self, self.list)

		self["key_red"] = Label(_("Close"))
		self["key_green"] = Label(_("Save"))
		self["key_yellow"] = Label(_("Configuration mode"))
		self["key_blue"] = Label()

		self["actions"] = ActionMap(["SetupActions", "SatlistShortcutAction", "ColorActions"],
		{
			"ok": self.keyOk,
			"save": self.keySave,
			"cancel": self.keyCancel,
			"changetype": self.changeConfigurationMode,
			"nothingconnected": self.nothingConnectedShortcut,
			"red": self.keyCancel,
			"green": self.keySave,
		}, -2)

		self.slotid = slotid
		self.nim = nimmanager.nim_slots[slotid]
		self.nimConfig = self.nim.config
		self.createConfigMode()
		self.createSetup()
		self.setTitle(_("Setup") + " " + self.nim.friendly_full_description)
开发者ID:BlackHole,项目名称:enigma2-1,代码行数:43,代码来源:Satconfig.py

示例9: __init__

# 需要导入模块: from Screens.ServiceStopScreen import ServiceStopScreen [as 别名]
# 或者: from Screens.ServiceStopScreen.ServiceStopScreen import __init__ [as 别名]
	def __init__(self, session, slotid):
		Screen.__init__(self, session)
		self.list = [ ]
		ServiceStopScreen.__init__(self)
		self.stopService()

		ConfigListScreen.__init__(self, self.list, session=session)

		self["actions"] = ActionMap(["SetupActions", "SatlistShortcutAction"],
		{
			"ok": self.keySave,
			"cancel": self.keyCancel,
			"nothingconnected": self.nothingConnectedShortcut
		}, -2)

		# hack for wizard and multi channel / multi input tuners
		if slotid >= 64:
			dest_slot = slotid - 64
			sl = -1
			slotid = 0
			slots = len(nimmanager.nim_slots)
			while slotid < slots:
				slot = nimmanager.nim_slots[slotid]
				if slot.inputs is None or slot.channel < len(slot.inputs):
					sl += 1
				if sl >= dest_slot:
					break
				slotid += 1

		self.slotid = slotid
		self.nim = nimmanager.nim_slots[slotid]
		self.nimConfig = self.nim.config

		self._lastUnicableManufacturerName = None
		self._lastUnicableProductName = None

		self.createConfigMode()
		self.createSetup()
开发者ID:OpenDMM,项目名称:enigma2,代码行数:40,代码来源:Satconfig.py

示例10: __init__

# 需要导入模块: from Screens.ServiceStopScreen import ServiceStopScreen [as 别名]
# 或者: from Screens.ServiceStopScreen.ServiceStopScreen import __init__ [as 别名]
	def __init__(self, session):
		self.skin = takeskin("SNESManager")
		Screen.__init__(self, session)
		ServiceStopScreen.__init__(self)
		self.session = session
		self.setTitle(_('SNES Manager'))
		self.list_installed = []
		self["installedimages"] = List(self.list_installed)
		self["key_red"] = Button(_('Run'))
		self["key_green"] = Button(_('Remove'))
		self["key_yellow"] = Button(_('Install'))
		self["key_blue"] = Button(_('Exit'))
		self["actions"] = ActionMap(["OkCancelActions", "ColorActions"],
		{
			"cancel": self.keyCancel,
			"blue": self.keyCancel,
			"green": self.keyUninstall,
			"yellow": self.keyInstall,
			"red": self.keyRun,
			#"ok": self.keyRun
		}, -2)

		self.onLayoutFinish.append(self.updateList)
开发者ID:emulatorE2,项目名称:snes_manager,代码行数:25,代码来源:plugin.py

示例11: __init__

# 需要导入模块: from Screens.ServiceStopScreen import ServiceStopScreen [as 别名]
# 或者: from Screens.ServiceStopScreen.ServiceStopScreen import __init__ [as 别名]
 def __init__(self, session, slotid):
     Screen.__init__(self, session)
     Screen.setTitle(self, _('Tuner settings'))
     self.list = []
     ServiceStopScreen.__init__(self)
     self.stopService()
     ConfigListScreen.__init__(self, self.list)
     self['key_red'] = Label(_('Close'))
     self['key_green'] = Label(_('Save'))
     self['key_yellow'] = Label(_('Configuration mode'))
     self['key_blue'] = Label()
     self['actions'] = ActionMap(['SetupActions', 'SatlistShortcutAction', 'ColorActions'], {'ok': self.keyOk,
      'save': self.keySave,
      'cancel': self.keyCancel,
      'changetype': self.changeConfigurationMode,
      'nothingconnected': self.nothingConnectedShortcut,
      'red': self.keyCancel,
      'green': self.keySave}, -2)
     self.slotid = slotid
     self.nim = nimmanager.nim_slots[slotid]
     self.nimConfig = self.nim.config
     self.createConfigMode()
     self.createSetup()
     self.onLayoutFinish.append(self.layoutFinished)
开发者ID:kingvuplus,项目名称:boom,代码行数:26,代码来源:Satconfig.py


注:本文中的Screens.ServiceStopScreen.ServiceStopScreen.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。