Skip to content

Commit

Permalink
Issue python#27025: Generated names for Tkinter widgets now start by …
Browse files Browse the repository at this point in the history
…the "!" prefix

for readability (was "`").
  • Loading branch information
serhiy-storchaka committed Oct 25, 2016
1 parent 7db3c48 commit b1f5287
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/tkinter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2261,9 +2261,9 @@ def _setup(self, master, cnf):
count = master._last_child_ids.get(name, 0) + 1
master._last_child_ids[name] = count
if count == 1:
name = '`%s' % (name,)
name = '!%s' % (name,)
else:
name = '`%s%d' % (name, count)
name = '!%s%d' % (name, count)
self._name = name
if master._w=='.':
self._w = '.' + name
Expand Down
6 changes: 6 additions & 0 deletions Misc/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ Core and Builtins
Library
-------

- Issue #27025: Generated names for Tkinter widgets now start by the "!" prefix
for readability (was "`").

- Issue #25464: Fixed HList.header_exists() in tkinter.tix module by addin
a workaround to Tix library bug.

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

- Issue #27025: Generated names for Tkinter widgets are now more meanful
and recognizirable.

- Issue #25455: Fixed crashes in repr of recursive ElementTree.Element and
functools.partial objects.

Expand Down

0 comments on commit b1f5287

Please sign in to comment.