summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-02-19 21:20:30 (GMT)
committerGuido van Rossum <guido@python.org>1998-02-19 21:20:30 (GMT)
commit0001a11986a17a94f1bf16df92b57df358d56958 (patch)
tree6e20d076966e8e8516c01d2f10413d4a37ead81a /Lib/lib-tk
parent2fc4d581baaa1ec1cb68f5d9b093e1d1d03830bc (diff)
downloadcpython-0001a11986a17a94f1bf16df92b57df358d56958.zip
cpython-0001a11986a17a94f1bf16df92b57df358d56958.tar.gz
cpython-0001a11986a17a94f1bf16df92b57df358d56958.tar.bz2
Fix bug in trace_vdelete(); should use master's delete command.
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py3
1 files changed, 2 insertions, 1 deletions
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={})