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

Skip to content

Commit b1f5287

Browse files
Issue #27025: Generated names for Tkinter widgets now start by the "!" prefix
for readability (was "`").
1 parent 7db3c48 commit b1f5287

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

Lib/tkinter/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,9 +2261,9 @@ def _setup(self, master, cnf):
22612261
count = master._last_child_ids.get(name, 0) + 1
22622262
master._last_child_ids[name] = count
22632263
if count == 1:
2264-
name = '`%s' % (name,)
2264+
name = '!%s' % (name,)
22652265
else:
2266-
name = '`%s%d' % (name, count)
2266+
name = '!%s%d' % (name, count)
22672267
self._name = name
22682268
if master._w=='.':
22692269
self._w = '.' + name

Misc/NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ Core and Builtins
2626
Library
2727
-------
2828

29+
- Issue #27025: Generated names for Tkinter widgets now start by the "!" prefix
30+
for readability (was "`").
31+
2932
- Issue #25464: Fixed HList.header_exists() in tkinter.tix module by addin
3033
a workaround to Tix library bug.
3134

@@ -1339,6 +1342,9 @@ Library
13391342
exposed on the API which are not implemented on GNU/Hurd. They would not
13401343
work at runtime anyway.
13411344

1345+
- Issue #27025: Generated names for Tkinter widgets are now more meanful
1346+
and recognizirable.
1347+
13421348
- Issue #25455: Fixed crashes in repr of recursive ElementTree.Element and
13431349
functools.partial objects.
13441350

0 commit comments

Comments
 (0)