summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-07-31 04:46:08 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-07-31 04:46:08 (GMT)
commit26f9feb3b3662150a58938d6af0259652c94f055 (patch)
tree57ca6bcfcb6f9c3a22ce00f5f2a19f035bb4fc8a /Lib/tkinter
parent7c87fdd5d5fd5d90ef5fd65237cef8287d42f3ff (diff)
downloadcpython-26f9feb3b3662150a58938d6af0259652c94f055.zip
cpython-26f9feb3b3662150a58938d6af0259652c94f055.tar.gz
cpython-26f9feb3b3662150a58938d6af0259652c94f055.tar.bz2
Back out of changes to Tkinter variables trace commands (issue #22085).
Diffstat (limited to 'Lib/tkinter')
-rw-r--r--Lib/tkinter/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
index 73d4f21..5257cb6 100644
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -245,7 +245,7 @@ class Variable:
Return the name of the callback.
"""
cbname = self._master._register(callback)
- self._tk.call("trace", "add", "variable", self._name, mode, cbname)
+ self._tk.call("trace", "variable", self._name, mode, cbname)
return cbname
trace = trace_variable
def trace_vdelete(self, mode, cbname):
@@ -254,12 +254,12 @@ class Variable:
MODE is one of "r", "w", "u" for read, write, undefine.
CBNAME is the name of the callback returned from trace_variable or trace.
"""
- self._tk.call("trace", "remove", "variable", self._name, mode, cbname)
+ self._tk.call("trace", "vdelete", self._name, mode, cbname)
self._master.deletecommand(cbname)
def trace_vinfo(self):
"""Return all trace callback information."""
return [self._tk.split(x) for x in self._tk.splitlist(
- self._tk.call("trace", "info", "variable", self._name))]
+ self._tk.call("trace", "vinfo", self._name))]
def __eq__(self, other):
"""Comparison for equality (==).