aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Tools/NumericalTextInput.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Tools/NumericalTextInput.py')
-rw-r--r--lib/python/Tools/NumericalTextInput.py5
1 files changed, 3 insertions, 2 deletions
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