From 0001a11986a17a94f1bf16df92b57df358d56958 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 19 Feb 1998 21:20:30 +0000 Subject: Fix bug in trace_vdelete(); should use master's delete command. --- Lib/lib-tk/Tkinter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 5220c9d..5d89892 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -84,7 +84,7 @@ class Variable: trace = trace_variable def trace_vdelete(self, mode, cbname): self._tk.call("trace", "vdelete", self._name, mode, cbname) - self._tk.deletecommand(cbname) + self._master.deletecommand(cbname) def trace_vinfo(self): return map(self._tk.split, self._tk.splitlist( self._tk.call("trace", "vinfo", self._name))) @@ -1134,6 +1134,7 @@ class Canvas(Widget): return self.tk.getdouble(self.tk.call( self._w, 'canvasy', screeny, gridspacing)) def coords(self, *args): + # XXX Should use _flatten on args return map(self.tk.getdouble, self.tk.splitlist(self._do('coords', args))) def _create(self, itemType, args, kw): # Args: (val, val, ..., cnf={}) -- cgit v0.12