Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
26f9feb3
Commit
26f9feb3
authored
Jul 31, 2014
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Back out of changes to Tkinter variables trace commands (issue #22085).
parent
7c87fdd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/tkinter/__init__.py
Lib/tkinter/__init__.py
+3
-3
No files found.
Lib/tkinter/__init__.py
View file @
26f9feb3
...
...
@@ -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
", "
variabl
e
", self._name, mode, cbname)
self._tk.call("
trace
", "
vdelet
e
", 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 (==).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment