本文整理汇总了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)
示例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()
示例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()
示例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()
示例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()
示例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()
示例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()
示例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)
示例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()
示例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)
示例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)