def getValue(self):
return self._value
+ def setCurrentText(self, text):
+ i = self.choices.index(self.value)
+ del self.description[self.choices[i]]
+ self.choices[i] = text
+ self.description[text] = text
+ self._value = text
+
value = property(getValue, setValue)
def getIndex(self):
def finishedChannelSelection(self, *args):
if len(args):
self.timer.service_ref = ServiceReference(args[0])
- self.timerentry_service.vals = (str(self.timer.service_ref.getServiceName()),)
+ self.timerentry_service.setCurrentText(self.timer.service_ref.getServiceName())
self["config"].invalidate(self.channelEntry)
def getTimestamp(self, date, mytime):