X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ad849952739d402553830c5ff080ac9a3edb3f4e..d4db62a3c940f3d9dabc97a55dd028b7f869047f:/lib/python/Components/config.py diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index f2d45ef8..c433f01b 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -77,7 +77,7 @@ class configSelection: self.checkValues() - self.parent.change() + self.parent.change() def __call__(self, selected): #needed by configlist self.checkValues() @@ -291,20 +291,24 @@ class configText: self.parent.save() def nextEntry(self): - print "Next entry" - self.handleKey(config.key["nextElement"]) + print self.parent + self.parent.vals[1](self.parent.getConfigPath()) def handleKey(self, key): #this will no change anything on the value itself #so we can handle it here in gui element if key == config.key["prevElement"]: + self.textInput.nextKey() self.markedPos -= 1 + if key == config.key["nextElement"]: + self.textInput.nextKey() self.markedPos += 1 if (self.mode == self.extendableSize): if (self.markedPos >= len(self.parent.value)): self.parent.value = self.parent.value.ljust(len(self.parent.value) + 1) - + + if key >= config.key["0"] and key <= config.key["9"]: number = 9 - config.key["9"] + key @@ -389,7 +393,7 @@ class configElement: tcnt = cnt cnt += 1 if tcnt != -1: - return tcnt + return tcnt return 0 #prevent bigger then array def datafromFile(self, control, data): @@ -465,6 +469,10 @@ class configElement: self.notifierList = [ ] self.enabled = True self.loadData() + + def getConfigPath(self): + return self.configPath + def addNotifier(self, notifier): self.notifierList.append(notifier); notifier(self);