Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b554fad

Browse files
Issue #22115: Updated Misc/NEWS.
2 parents 8122174 + 745a407 commit b554fad

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Lib/tkinter/test/test_tkinter/test_variables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def test_initialize(self):
8989

9090
def test_trace_old(self):
9191
# Old interface
92-
v = Var(self.root)
92+
v = Variable(self.root)
9393
vname = str(v)
9494
trace = []
9595
def read_tracer(*args):
@@ -138,7 +138,7 @@ def write_tracer(*args):
138138
self.assertEqual(trace, [('write', vname, '', 'u')])
139139

140140
def test_trace(self):
141-
v = Var(self.root)
141+
v = Variable(self.root)
142142
vname = str(v)
143143
trace = []
144144
def read_tracer(*args):

Misc/NEWS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ Library
1313
- Issue #22115: Added methods trace_add, trace_remove and trace_info in the
1414
tkinter.Variable class. They replace old methods trace_variable, trace,
1515
trace_vdelete and trace_vinfo that use obsolete Tcl commands and might
16-
not work in future versions of Tcl.
16+
not work in future versions of Tcl. Fixed old tracing methods:
17+
trace_vdelete() with wrong mode no longer break tracing, trace_vinfo() now
18+
always returns a list of pairs of strings, tracing in the "u" mode now works.
1719

1820
- Issue #26243: Only the level argument to zlib.compress() is keyword argument
1921
now. The first argument is positional-only.

0 commit comments

Comments
 (0)