cpython: Back out of changes to Tkinter variables trace commands (issue #22085).

http://hg.python.org/cpython/rev/9f333c06915f changeset: 91946:9f333c06915f user: Serhiy Storchaka <storchaka@gmail.com> date: Thu Jul 31 07:46:08 2014 +0300 summary: Back out of changes to Tkinter variables trace commands (issue #22085). files: Lib/tkinter/__init__.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -245,7 +245,7 @@ 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 @@ 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 (==). -- Repository URL: http://hg.python.org/cpython
participants (1)
-
serhiy.storchaka