summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/__init__.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-25 06:46:46 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-25 06:46:46 (GMT)
commite402312499a04032e998ef4e280e51f8bb1ebb9b (patch)
treea5c01f9108c50386e61583c29aab4815ff0b4cc6 /Lib/tkinter/__init__.py
parent42bcbf76f7a03610e610e48866e6fe85f403f0b9 (diff)
parentb1f52879528283483b26a11b24b306c90db1169d (diff)
downloadcpython-e402312499a04032e998ef4e280e51f8bb1ebb9b.zip
cpython-e402312499a04032e998ef4e280e51f8bb1ebb9b.tar.gz
cpython-e402312499a04032e998ef4e280e51f8bb1ebb9b.tar.bz2
Issue #27025: Generated names for Tkinter widgets now start by the "!" prefix
for readability (was "`").
Diffstat (limited to 'Lib/tkinter/__init__.py')
-rw-r--r--Lib/tkinter/__init__.py4
1 files changed, 2 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