cpython: 603ac788ed27 (original) (raw)
Mercurial > cpython
changeset 104688:603ac788ed27 3.6
Issue #27025: Generated names for Tkinter widgets now start by the "!" prefix for readability (was "`"). [#27025]
Serhiy Storchaka storchaka@gmail.com | |
---|---|
date | Tue, 25 Oct 2016 09:43:48 +0300 |
parents | 5784cc37b5f4 |
children | 505949cb2692 6af1a26e655f |
files | Lib/tkinter/__init__.py Misc/NEWS |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-)[+] [-] Lib/tkinter/__init__.py 4 Misc/NEWS 6 |
line wrap: on
line diff
--- 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,)[](#l1.7)
name = '!%s' % (name,)[](#l1.8) else:[](#l1.9)
name = '`%s%d' % (name, count)[](#l1.10)
name = '!%s%d' % (name, count)[](#l1.11) self._name = name[](#l1.12) if master._w=='.':[](#l1.13) self._w = '.' + name[](#l1.14)
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -26,6 +26,9 @@ Core and Builtins Library ------- +- Issue #27025: Generated names for Tkinter widgets now start by the "!" prefix
- 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