diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-25 06:43:48 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-25 06:43:48 (GMT) |
commit | b1f52879528283483b26a11b24b306c90db1169d (patch) | |
tree | c9cde8b0ae6687571caf2a7f90def5327bdff4b0 | |
parent | 7db3c488335168993689ddae5914a28e16188447 (diff) | |
download | cpython-b1f52879528283483b26a11b24b306c90db1169d.zip cpython-b1f52879528283483b26a11b24b306c90db1169d.tar.gz cpython-b1f52879528283483b26a11b24b306c90db1169d.tar.bz2 |
Issue #27025: Generated names for Tkinter widgets now start by the "!" prefix
for readability (was "`").
-rw-r--r-- | Lib/tkinter/__init__.py | 4 | ||||
-rw-r--r-- | Misc/NEWS | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index 99ad2a7..25fe645 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -2261,9 +2261,9 @@ class BaseWidget(Misc): 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 @@ -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. @@ -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. |