summaryrefslogtreecommitdiffstats
path: root/Tools/idle
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/idle')
-rw-r--r--Tools/idle/WidgetRedirector.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/idle/WidgetRedirector.py b/Tools/idle/WidgetRedirector.py
index 45f86f7..b11b0e4 100644
--- a/Tools/idle/WidgetRedirector.py
+++ b/Tools/idle/WidgetRedirector.py
@@ -28,11 +28,11 @@ class WidgetRedirector:
tk = widget.tk
w = widget._w
tk.deletecommand(w)
- tk.call("rename", w, orig)
+ tk.call("rename", orig, w)
def register(self, name, function):
if self.dict.has_key(name):
- previous = function
+ previous = dict[name]
else:
previous = OriginalCommand(self, name)
self.dict[name] = function