diff options
author | kanzure <kanzure@gmail.com> | 2009-09-08 13:09:23 -0500 |
---|---|---|
committer | kanzure <kanzure@gmail.com> | 2009-09-08 13:09:23 -0500 |
commit | 58f85d4e0034eb276f900c6c2f63398d6126749d (patch) | |
tree | c7bd18c2215c856573ac38726646847852f9520c | |
parent | cd5024338f2a408d020c63adb6ee49b9d23fa8f9 (diff) | |
download | skdb-58f85d4e0034eb276f900c6c2f63398d6126749d.tar.gz skdb-58f85d4e0034eb276f900c6c2f63398d6126749d.zip |
fix functools.partial (forgot a parameter)
-rw-r--r-- | gui/gui.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |