X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/cada870e04110fb127065194a1cba16b7b380ba9..6c5be5e892a12b25377ca600741bb11bb8e1872f:/lib/python/Tools/NumericalTextInput.py diff --git a/lib/python/Tools/NumericalTextInput.py b/lib/python/Tools/NumericalTextInput.py index 79c33010..74497895 100644 --- a/lib/python/Tools/NumericalTextInput.py +++ b/lib/python/Tools/NumericalTextInput.py @@ -13,7 +13,7 @@ class NumericalTextInput: mapping.append ("tuv8TUV") # 8 mapping.append ("wxyz9WXYZ") # 9 - def __init__(self, nextFunction): + def __init__(self, nextFunction = None): self.nextFunction = nextFunction self.Timer = eTimer() self.Timer.timeout.get().append(self.nextChar) @@ -40,5 +40,6 @@ class NumericalTextInput: self.Timer.stop() print "Timer done" self.nextKey() - self.nextFunction() + if (self.nextFunction != None): + self.nextFunction() \ No newline at end of file