[Python-checkins] cpython: Issue #24137: Fixed IDLE on Linux with tkinter default root disabled.
serhiy.storchaka
python-checkins at python.org
Sat Jun 25 16:53:13 EDT 2016
https://hg.python.org/cpython/rev/a8d611eb6173
changeset: 102172:a8d611eb6173
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sat Jun 25 23:52:51 2016 +0300
summary:
Issue #24137: Fixed IDLE on Linux with tkinter default root disabled.
files:
Lib/idlelib/pyshell.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py
--- a/Lib/idlelib/pyshell.py
+++ b/Lib/idlelib/pyshell.py
@@ -1562,7 +1562,8 @@
ext = '.png' if TkVersion >= 8.6 else '.gif'
iconfiles = [os.path.join(icondir, 'idle_%d%s' % (size, ext))
for size in (16, 32, 48)]
- icons = [PhotoImage(file=iconfile) for iconfile in iconfiles]
+ icons = [PhotoImage(master=root, file=iconfile)
+ for iconfile in iconfiles]
root.wm_iconphoto(True, *icons)
# start editor and/or shell windows:
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list