From 1b7c72ab3e418455c7da93b16e07f690328e3362 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Tue, 29 Nov 2005 00:11:06 +0000 Subject: use NumericalTextInput to jump to entries in ChannelSelection (jumping needs to implemented before it will work :)) --- lib/python/Tools/NumericalTextInput.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '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 -- cgit v1.2.3