def selectionChanged(self): if Setup.getCurrentItem(self) in (config.timezone.area, config.timezone.val): self["key_yellow"].setText(_("Use Geolocation")) self["geolocationActions"].setEnabled(True) else: self["key_yellow"].setText("") self["geolocationActions"].setEnabled(False) Setup.selectionChanged(self)
def selectionChanged(self): if self.getCurrentItem() == config.hdmicec.enabled: if config.hdmicec.enabled.value: self.updateAddress() else: self["key_yellow"].setText("") self["current_address"].setText("") self["fixed_address"].setText("") self["addressActions"].setEnabled(config.hdmicec.enabled.value) self["key_blue"].setText(_("Use defaults") if config.hdmicec.enabled.value else "") self["defaultActions"].setEnabled(config.hdmicec.enabled.value) Setup.selectionChanged(self)
def selectionChanged(self): Setup.selectionChanged(self) if self.findCurrentService(self.serviceName, self.serviceReference) == -1: self["addCurrentActions"].setEnabled(True) self["key_yellow"].setText(_("Add Current")) else: self["addCurrentActions"].setEnabled(False) self["key_yellow"].setText("") if self["config"].getCurrentIndex() > self.volumeStart: self["deleteActions"].setEnabled(True) self["key_blue"].setText(_("Delete")) else: self["deleteActions"].setEnabled(False) self["key_blue"].setText("")
def selectionChanged(self): if self.errorItem == -1: Setup.selectionChanged(self) else: self["config"].setCurrentIndex(self.errorItem)
def selectionChanged(self): self.updateButtons() Setup.selectionChanged(self)