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)
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()
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()
def __init__(self, session, slotid): Screen.__init__(self, session) self.list = [ ] ServiceStopScreen.__init__(self) ConfigListScreen.__init__(self, self.list) self["key_red"] = Label(_("Cancel")) self["key_green"] = Label(_("Save")) self["key_yellow"] = Label() 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() self.setTitle(_("Setup") + " " + self.nim.friendly_full_description)
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()
def __init__(self, session, slotid): NimSetupBase.__init__(self, slotid) Screen.__init__(self, session) self.list = [ ] ServiceStopScreen.__init__(self) self.stopService() ConfigListScreen.__init__(self, self.list, session=session) clSizes = componentSizes[componentSizes.CONFIG_LIST] sizes = componentSizes[componentSizes.NIM_SETUP] self._getConfig().l.setSeparation( sizes.get( "separation", clSizes.get( "separation", sizes.get( "seperation", clSizes.get( "seperation", 400) ) ) ) ) self["actions"] = ActionMap(["SetupActions", "SatlistShortcutAction"], { "ok": self.keySave, "cancel": self.keyCancel, "nothingconnected": self.nothingConnectedShortcut }, -2) self.createConfigMode() self.createSetup()
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()
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()
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()
def __init__(self, session): Screen.__init__(self, session, windowTitle=_("Radio")) self.skinName = "SimpleRadioScreen" ServiceStopScreen.__init__(self) self.stopService() self._list = List([], buildfunc=self._buildFunc) self._serviceLabel = Label("") InfoBarServiceErrorPopupSupport.__init__(self) InfoBarGstreamerErrorPopupSupport.__init__(self) self._service = None self.numericalTextInput = NumericalTextInput() self.numericalTextInput.setUseableChars(u'1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ') self["attribution"] = Label(_("powered by www.radio-browser.info")) self["country"] = StaticText("") self["list"] = self._list self["service"] = self._serviceLabel self["actions"] = NumberActionMap(["OkCancelActions", "NumberActions", "ColorActions"], { "ok": self._onOk , "cancel" : self.close, "blue" : self._onBlue, "1": self._onKeyChar, "2": self._onKeyChar, "3": self._onKeyChar, "4": self._onKeyChar, "5": self._onKeyChar, "6": self._onKeyChar, "7": self._onKeyChar, "8": self._onKeyChar, "9": self._onKeyChar, "0": self._onKeyChar }, -1) self._country = config.plugins.simpleradio.country.value self._browser = RadioBrowserClient() self._onLoadFinished({}) self._browser.stations(self._country.lower(), self._onLoadFinished) self["country"].setText(_(self._country.capitalize())) self._browser.countries(self._onCountriesReady) self._stateInfo = self.session.instantiateDialog(InfoBarStateInfo,zPosition=50) self._infoBarStateInfo = InfoBarServiceErrorPopupSupport._stateInfo InfoBarServiceErrorPopupSupport._stateInfo = self._stateInfo self.onClose.append(self.__onClose)
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()
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)
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()
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()
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()
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)
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)
def __init__(self, session): Screen.__init__(self, session) self.oldService = session.nav.getCurrentlyPlayingServiceReference() session.nav.stopService() ServiceStopScreen.__init__(self) self["pic"] = Pixmap() self.picload = ePicLoad() self.picload.PictureData.get() ptr = self.picload.getData() if ptr is not None: self["pic"].instance.setPixmap(ptr.__deref__()) self["pic"].show() self.picload.getThumbnail('/home/root/Extensions/MS-ZX80/ms-zx80.png', 100, 100) self["pic"].show() self.startEmuTimer = eTimer() self.startEmuTimer.start(2, False) self.startEmuTimer.callback.append(self.timed_start) self.stopService() self.container = eConsoleAppContainer() self.container.appClosed.append(self.runDone)