Commit 93c52b03 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #27025: Generated names for Tkinter widgets now start by the "!" prefix

for readability (was "`").
parent 1eecdb42
...@@ -2261,9 +2261,9 @@ class BaseWidget(Misc): ...@@ -2261,9 +2261,9 @@ class BaseWidget(Misc):
count = master._last_child_ids.get(name, 0) + 1 count = master._last_child_ids.get(name, 0) + 1
master._last_child_ids[name] = count master._last_child_ids[name] = count
if count == 1: if count == 1:
name = '`%s' % (name,) name = '!%s' % (name,)
else: else:
name = '`%s%d' % (name, count) name = '!%s%d' % (name, count)
self._name = name self._name = name
if master._w=='.': if master._w=='.':
self._w = '.' + name self._w = '.' + name
......
...@@ -26,6 +26,9 @@ Core and Builtins ...@@ -26,6 +26,9 @@ Core and Builtins
Library 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 - Issue #25464: Fixed HList.header_exists() in tkinter.tix module by addin
a workaround to Tix library bug. a workaround to Tix library bug.
...@@ -1339,6 +1342,9 @@ Library ...@@ -1339,6 +1342,9 @@ Library
exposed on the API which are not implemented on GNU/Hurd. They would not exposed on the API which are not implemented on GNU/Hurd. They would not
work at runtime anyway. 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 - Issue #25455: Fixed crashes in repr of recursive ElementTree.Element and
functools.partial objects. functools.partial objects.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment