summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkanzure <kanzure@gmail.com>2009-09-08 13:09:23 -0500
committerkanzure <kanzure@gmail.com>2009-09-08 13:09:23 -0500
commit58f85d4e0034eb276f900c6c2f63398d6126749d (patch)
treec7bd18c2215c856573ac38726646847852f9520c
parentcd5024338f2a408d020c63adb6ee49b9d23fa8f9 (diff)
downloadskdb-58f85d4e0034eb276f900c6c2f63398d6126749d.tar.gz
skdb-58f85d4e0034eb276f900c6c2f63398d6126749d.zip
fix functools.partial (forgot a parameter)
-rw-r--r--gui/gui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/gui.py b/gui/gui.py
index db55f38..5e357f0 100644
--- a/gui/gui.py
+++ b/gui/gui.py
@@ -122,7 +122,7 @@ def add_key(key,method_to_call,**keywords):
'''
upper_case = key.upper()
orded = ord(upper_case) #see wxDisplay.py line 171
- OCC.Display.wxSamplesGui.frame.canva._key_map[orded] = functools.partial(method_to_call, keywords)
+ OCC.Display.wxSamplesGui.frame.canva._key_map[orded] = functools.partial(method_to_call, None, keywords)
print "key '", orded, "' mapped to ", method_to_call
return