def keyOK(self): if self["config"].l.getCurrentSelection() == self.editListEntry: self.session.open(ParentalControlEditor) elif self["config"].l.getCurrentSelection() == self.editBouquetListEntry: self.session.open(ParentalControlBouquetEditor) elif self["config"].l.getCurrentSelection() == self.changePin: if config.ParentalControl.mode.value == "complex": pass else: self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("service PIN")) elif self["config"].l.getCurrentSelection() == self.changeSetupPin: self.session.open(ParentalControlChangePin, config.ParentalControl.setuppin, _("setup PIN")) elif self["config"].l.getCurrentSelection() == self.changeMoviePin: self.session.open(ParentalControlChangePin, config.ParentalControl.moviepin, _("movie / directory PIN")) elif self["config"].l.getCurrentSelection() == self.resetMoviePinCache: if not parentalControlFolder.configInitialized: parentalControlFolder.getConfigValues() parentalControlFolder.resetSessionPin() self.keyCancel() elif self["config"].l.getCurrentSelection() == self.changeDeletePin: self.session.open(ParentalControlChangePin, config.ParentalControl.deletepin, _("movie-delete PIN")) elif self["config"].l.getCurrentSelection() == self.resetDeletePinCache: if not parentalControlFolder.configInitialized: parentalControlFolder.getConfigValues() parentalControlFolder.resetSessionDeletePin() self.keyCancel() elif self["config"].l.getCurrentSelection() == self.reloadLists: from Components.ParentalControl import parentalControl parentalControl.open() else: ConfigListScreen.keyRight(self) self.createSetup()
def keyRight(self): current = self["config"].getCurrent() if current == self.splitEntry or current == self.color_spaceEntry: ConfigListScreen.keyRight(self) elif (current == self.scaler_vertical_dejaggingEntry) or (current == self.smoothEntry): ConfigListScreen.keyRight(self) elif current != self.splitEntry and current in self.xtdlist: self.previewlist = [current, self.splitEntry] maxvalue = current[1].max self.session.openWithCallback( self.PreviewClosed, VideoEnhancementPreview, configEntry=self.previewlist, oldSplitMode=config.pep.split.value, maxValue=maxvalue, ) else: self.previewlist = [current] maxvalue = current[1].max self.session.openWithCallback( self.PreviewClosed, VideoEnhancementPreview, configEntry=self.previewlist, oldSplitMode=None, maxValue=maxvalue, )
def keyRight(self): cur = self["config"].getCurrent() cur = cur and cur[1] if cur == self.tags: self.chooseTags() else: ConfigListScreen.keyRight(self)
def keyRight(self): printl("", self, "S") ConfigListScreen.keyRight(self) self.createSetup() printl("", self, "C")
def keyRight(self, config = False): if config or self.focus == FOCUS_CONFIG: if self["config"].getCurrentIndex() < 3: ConfigListScreen.keyRight(self) elif hasattr(self, "plugincallfunc"): self.plugincallfunc() if self.focus == FOCUS_STREAMS and self["streams"].count() and config == False: self["streams"].setIndex(self["streams"].count()-1)
def keyRight(self): sel = self["config"].getCurrent()[1] if sel == self.positionEntry: self.percent += float(config.plugins.Seekbar.sensibility.value) / 10.0 if self.percent > 100.0: self.percent = 100.0 else: ConfigListScreen.keyRight(self)
def keyRight(self): sel = self["config"].getCurrent()[1] if sel == self.positionEntry: self.percent += float(config.AdvancedMovieSelection.sensibility.value) / 1.0 if self.percent > 100.0: self.percent = 100.0 else: ConfigListScreen.keyRight(self)
def keyRight(self): if self.rebootLock: return global fwlist if fwlist is None: return ConfigListScreen.keyRight(self) self.setupStatus()
def keyRight(self): if self.nim.isFBCLink() and self["config"].getCurrent() in (self.advancedLof, self.advancedConnected): return ConfigListScreen.keyRight(self) if self["config"].getCurrent() in (self.advancedSelectSatsEntry, self.selectSatsEntry): self.keyOk() else: self.newConfig()
def keyRight(self): if isFBCLink(self.nim): checkList = (self.advancedLof, self.advancedConnected) curEntry = self["config"].getCurrent() if curEntry in checkList: return ConfigListScreen.keyRight(self) self.newConfig()
def keyRight(self): ConfigListScreen.keyRight(self) if self["config"].getCurrent()[1] == config.GOSsettings.opkg: if config.GOSsettings.opkg.value == "testing": self.session.open(MessageBox,_("WARNING: The probability of issues in 'testing' branch is high. It's NOT recommended for unexperienced users!\n\nReturning to release branch only through reinstallation!!!"), MessageBox.TYPE_INFO) elif config.GOSsettings.opkg.value == "ready": self.session.open(MessageBox,_("WARNING: The probability of issues in 'ready' branch is small, but exists."), MessageBox.TYPE_INFO) elif self["config"].getCurrent()[1] == config.GOSsettings.ModerateShutDown: self.runSetup()
def keyRight(self): cur = self["config"].getCurrent() if cur in (self.channelEntry, self.tagsSet): self.keySelect() elif cur in (self.entryName, self.entryDescription): self.renameEntry() else: ConfigListScreen.keyRight(self) self.newConfig()
def modifyEntry(self): cur = self["config"].getCurrent() if isinstance(cur, tuple) and isinstance(cur[1], ConfigSet): preference_list = cur[1].getValue() category = cur[0] (available_choices, preference_tuplelist) = self.track_autoselect_config.getAvailableChoicesAndPreferenceTuplelist(category, preference_list) self.session.openWithCallback(boundFunction(self.preferencesSetCB, cur[1]), TrackAutoselectPreferenceListScreen, category, available_choices, preference_tuplelist) else: ConfigListScreen.keyRight(self)
def keyRight(self): ConfigListScreen.keyRight(self) current = self["config"].getCurrent()[1] if current in [ config.plugins.archivCZSK.linkVerification, config.plugins.archivCZSK.videoPlayer.type, config.plugins.archivCZSK.videoPlayer.servicemp4, config.plugins.archivCZSK.videoPlayer.servicemrua, config.plugins.archivCZSK.videoPlayer.bufferMode]: self.buildMenu()
def keyRight(self): oldpwmvalue=config.plugins.manualfancontrols.pwmvalue.value ConfigListScreen.keyRight(self) if self["config"].getCurrent() == self.pwmEntry and oldpwmvalue == 0: self.createSetup() while self["config"].getCurrent() != self.pwmEntry: self["config"].setCurrentIndex(self["config"].getCurrentIndex()+1) else: self.displayCurrentValue() self.selectionChanged()
def keyOK(self): if self["config"].l.getCurrentSelection() == self.changePin: self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("service PIN")) elif self["config"].l.getCurrentSelection() == self.reloadLists: from Components.ParentalControl import parentalControl parentalControl.open() self.session.open(MessageBox, _("Lists reloaded!"), MessageBox.TYPE_INFO, timeout=3) else: ConfigListScreen.keyRight(self) self.createSetup()
def keyRight(self, config = False): if config or self.focus == FOCUS_CONFIG: if self["config"].getCurrentIndex() < 3: ConfigListScreen.keyRight(self) else: cur = self["config"].getCurrent() or None if cur and cur[0] in self.plugincallerdict: self.plugincallerdict[cur[0]]() if self.focus == FOCUS_STREAMS and self["streams"].count() and config == False: self["streams"].setIndex(self["streams"].count()-1)
def keyRight(self, config = False): if config or self.focus == FOCUS_CONFIG: if self.settings.menupage.value == PAGE_AUDIO and self['config'].getCurrent()[2]: self['config'].getCurrent()[2]() elif self.settings.menupage.value == PAGE_SUBTITLES and self.infobar.selected_subtitle and self.infobar.selected_subtitle != (0, 0, 0, 0): self.session.open(QuickSubtitlesConfigMenu, self.infobar) else: ConfigListScreen.keyRight(self) if self.focus == FOCUS_STREAMS and config == False: self.keyAudioSubtitle()
def keyRight(self): if isFBCLink(self.nim): checkList = (self.advancedLof, self.advancedConnected) curEntry = self["config"].getCurrent() if curEntry in checkList: return ConfigListScreen.keyRight(self) if self["config"].getCurrent() in (self.advancedSelectSatsEntry, self.selectSatsEntry): self.keyOk() else: self.newConfig()
def keyRight(self, config = False): if config or self.focus == FOCUS_CONFIG: if self["config"].getCurrentIndex() < 3: ConfigListScreen.keyRight(self) elif self["config"].getCurrentIndex() == 3: if self.settings.menupage.getValue() == PAGE_AUDIO and hasattr(self, "plugincallfunc"): self.plugincallfunc() elif self.settings.menupage.getValue() == PAGE_SUBTITLES and self.infobar.selected_subtitle and self.infobar.selected_subtitle != (0,0,0,0): self.session.open(QuickSubtitlesConfigMenu, self.infobar) if self.focus == FOCUS_STREAMS and self["streams"].count() and config == False: self["streams"].setIndex(self["streams"].count()-1)
def keyRight(self): current = self["config"].getCurrent() if current in (self.splitEntry, self.scaler_vertical_dejaggingEntry, self.smoothEntry): ConfigListScreen.keyRight(self) else: if current in self.xtdlist: self.previewlist = [current, self.splitEntry] oldsplitmode = config.pep.split.value else: self.previewlist = [current] oldsplitmode = None maxvalue = current[1].max self.session.openWithCallback(self.PreviewClosed, VideoEnhancementPreview, configEntry=self.previewlist, oldSplitMode=oldsplitmode, maxValue=maxvalue)
def keyRight(self): cur = self["config"].getCurrent() if cur and isFBCLink(self.nim.slot): checkList = (self.advancedLof, self.advancedConnected) if cur in checkList: return ConfigListScreen.keyRight(self) if cur in (self.advancedSelectSatsEntry, self.selectSatsEntry) and cur: self.keyOk() else: if cur == self.multiType and cur: self.saveAll() self.newConfig()
def keyOK(self): if self["config"].l.getCurrentSelection() == self.changePin: if config.ParentalControl.servicepin[0].value: self.session.openWithCallback(self.oldPinEntered, PinInput, pinList=[x.value for x in config.ParentalControl.servicepin], triesEntry=config.ParentalControl.retries.servicepin, title=_("Please enter the old PIN code"), windowTitle=_("Enter pin code")) else: self.oldPinEntered(True) elif self["config"].l.getCurrentSelection() == self.reloadLists: from Components.ParentalControl import parentalControl parentalControl.open() self.session.open(MessageBox, _("Lists reloaded!"), MessageBox.TYPE_INFO, timeout=3) else: ConfigListScreen.keyRight(self) self.createSetup()
def keyRight(self): current = self['config'].getCurrent() if current == self.splitEntry: ConfigListScreen.keyRight(self) elif current != self.splitEntry and current in self.xtdlist: self.previewlist = [ current, self.splitEntry] maxvalue = current[1].max self.session.openWithCallback(self.PreviewClosed, videoSettingsPreview, configEntry = self.previewlist, oldSplitMode = config.vset.split.value, maxValue = maxvalue) else: self.previewlist = [ current] maxvalue = current[1].max self.session.openWithCallback(self.PreviewClosed, videoSettingsPreview, configEntry = self.previewlist, oldSplitMode = None, maxValue = maxvalue)
def keyOK(self): print "self[\"config\"].l.getCurrentSelection()", self["config"].l.getCurrentSelection() if self["config"].l.getCurrentSelection() == self.editListEntry: self.session.open(ParentalControlEditor) elif self["config"].l.getCurrentSelection() == self.changePin: if config.ParentalControl.mode.value == "complex": pass else: self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("service pin")) elif self["config"].l.getCurrentSelection() == self.changeSetupPin: self.session.open(ParentalControlChangePin, config.ParentalControl.setuppin, _("setup pin")) else: ConfigListScreen.keyRight(self) print "current selection:", self["config"].l.getCurrentSelection() self.createSetup()
def keyRight(self, config = False): #add by mpiero if config or self.focus == FOCUS_CONFIG: if self.nummplugin!=None and self.nummplugin==self["config"].getCurrentIndex() and self.settings.menupage.getValue() == PAGE_AUDIO and hasattr(self, "plugincallfunc"): try: self.plugincallfunc() except: pass elif self["config"].getCurrentIndex() == 0 and self.settings.menupage.getValue() == PAGE_SUBTITLES and self.infobar.selected_subtitle and self.infobar.selected_subtitle != (0,0,0,0): self.session.open(QuickSubtitlesConfigMenu, self.infobar) else: ConfigListScreen.keyRight(self) if self.focus == FOCUS_STREAMS and config == False: self.keyAudioSubtitle()
def keyRight(self, config = False): if config or self.focus == FOCUS_CONFIG: if self["config"].getCurrentIndex() < 3: ConfigListScreen.keyRight(self) elif self["config"].getCurrentIndex() == 3: if self.settings.menupage.getValue() == PAGE_AUDIO and hasattr(self, "plugincallfunc"): if len(self.Plugins) > 1: def runPluginAction(choice): if choice: choice[1]() self.session.openWithCallback(runPluginAction, ChoiceBox, title=_("Audio plugins"), list=self.plugincallfunc) else: self.plugincallfunc() elif self.settings.menupage.getValue() == PAGE_SUBTITLES and self.infobar.selected_subtitle and self.infobar.selected_subtitle != (0,0,0,0): self.session.open(QuickSubtitlesConfigMenu, self.infobar) if self.focus == FOCUS_STREAMS and self["streams"].count() and config == False: self["streams"].setIndex(self["streams"].count()-1)
def keyRight(self, config = False): if config or self.focus == FOCUS_CONFIG: list_length = 4 if SystemInfo["Can3DSurround"]: list_length += 1 if SystemInfo["CanSpeakerPosition"]: list_length += 1 if SystemInfo["CanDownmixAAC"]: list_length += 1 if SystemInfo["CanAVL"]: list_length += 1 if SystemInfo["CanMultiChannelPCM"]: list_length += 1 if self["config"].getCurrentIndex() < list_length: ConfigListScreen.keyRight(self) elif hasattr(self, "plugincallfunc"): self.plugincallfunc() if self.focus == FOCUS_STREAMS and self["streams"].count() and config == False: self["streams"].setIndex(self["streams"].count()-1)
def keyOK(self): if self["config"].l.getCurrentSelection() == self.editListEntry: self.session.open(ParentalControlEditor) elif self["config"].l.getCurrentSelection() == self.editBouquetListEntry: self.session.open(ParentalControlBouquetEditor) elif self["config"].l.getCurrentSelection() == self.changePin: if config.ParentalControl.mode.value == "complex": pass else: self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("service PIN")) elif self["config"].l.getCurrentSelection() == self.changeSetupPin: self.session.open(ParentalControlChangePin, config.ParentalControl.setuppin, _("setup PIN")) elif self["config"].l.getCurrentSelection() == self.reloadLists: from Components.ParentalControl import parentalControl parentalControl.open() self.session.open(MessageBox, _("Lists reloaded!"), MessageBox.TYPE_INFO, timeout=3) else: ConfigListScreen.keyRight(self) self.createSetup()
def keyOK(self): print "self[\"config\"].l.getCurrentSelection()", self["config"].l.getCurrentSelection() if self["config"].l.getCurrentSelection() == self.editListEntry: self.session.open(ParentalControlEditor) elif self["config"].l.getCurrentSelection() == self.editBouquetListEntry: self.session.open(ParentalControlBouquetEditor) elif self["config"].l.getCurrentSelection() == self.changePin: if config.ParentalControl.mode.getValue() == "complex": pass else: self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("service PIN")) elif self["config"].l.getCurrentSelection() == self.changeSetupPin: self.session.open(ParentalControlChangePin, config.ParentalControl.setuppin, _("setup PIN")) elif self["config"].l.getCurrentSelection() == self.reloadLists: from Components.ParentalControl import parentalControl parentalControl.open() else: ConfigListScreen.keyRight(self) print "current selection:", self["config"].l.getCurrentSelection() self.createSetup()
def keyRight(self): ConfigListScreen.keyRight(self) if self["config"].getCurrent() == self.server_entry: self.createSetup() self.selectionChanged()
def keyRight(self): ConfigListScreen.keyRight(self) self.changeSubOptions()
def keyRight(self): ConfigListScreen.keyRight(self) self.runSetup()
def keyRight(self): if self.index == 0: return ConfigListScreen.keyRight(self) self.createMenu()
def keyRight(self): ConfigListScreen.keyRight(self) self.mylist()
def keyRight(self): ConfigListScreen.keyRight(self) if self["config"].getCurrent()[1] == cfg.enable: self.runSetup()
def keyRight(self): ConfigListScreen.keyRight(self) if self.encoder is not None and (self["config"].getCurrent( ) == self.encoder) or self.automode is not None and ( self["config"].getCurrent() == self.automode): self.createSetup()
def keyRight(self): ConfigListScreen.keyRight(self) if self.step == 3: self.setPreviewPosition()
def keyRight(self): ConfigListScreen.keyRight(self)
def keyRight(self): ConfigListScreen.keyRight(self) self.ShowPicture()
def keyRight(self): ConfigListScreen.keyRight(self) self.createSetup()
def keyRight(self): ConfigListScreen.keyRight(self) self.setupChanged()
def keyRight(self): ConfigListScreen.keyRight(self) self.previewSkin()
def keyRight(self): ConfigListScreen.keyRight(self) self.handleKeysLeftAndRight()
def keyRight(self): ConfigListScreen.keyRight(self) self.setupList()
def keyRight(self): ConfigListScreen.keyRight(self) self.setPreviewSettings()
def keyRight(self): if self["config"].getCurrent() in (self.channelEntry, self.tagsSet): self.keySelect() else: ConfigListScreen.keyRight(self) self.newConfig()
def keyRight(self): ConfigListScreen.keyRight(self) if self["config"].getCurrent( )[1] == config.plugins.autoresolution.enable: self.createSetup()
def keyRight(self): ConfigListScreen.keyRight(self) if self["config"].getCurrent()[1] == config.plugins.tvcharts.enabled: self.createSetup()
def keyRight(self): ConfigListScreen.keyRight(self) self._onKeyChange()
def keyRight(self): if self.isStepSlider is True: self["config"].getCurrent( )[1].increment = config.pep.configsteps.value ConfigListScreen.keyRight(self)
def keyRight(self): ConfigListScreen.keyRight(self) self.changedEntry()
def keyRight(self): ConfigListScreen.keyRight(self) if self["config"].getCurrent() == self.hdmienabled: self.createSetup() if self["config"].getCurrent() == self.hdmiavinput: self.createSetup()
def keyRight(self): ConfigListScreen.keyRight(self) self.setCurrentValue()
def keyRight(self): if is_process_running(self.browser_name) == False: ConfigListScreen.keyRight(self) alpha_value = self.alpha.value
def keyRight(self): ConfigListScreen.keyRight(self) self.keyRightLeftActions()
def keyRight(self): ConfigListScreen.keyRight(self) if self["config"].l.getCurrentSelection() == self.changePin: pass else: self.createSetup()
def keyRight(self): ConfigListScreen.keyRight(self) key = self.keydict[self["config"].getCurrent()[1]] if key == "authormode" or key == "output" or key == "titlesetmode": self.initConfigList()
def keyRight(self): ConfigListScreen.keyRight(self) self.newConfig()
def keyRight(self): ConfigListScreen.keyRight(self) self.setPreviewPosition()