summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-06-25 20:52:51 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-06-25 20:52:51 (GMT)
commitd3af156ded8cb645c1bd28deae7cde4d0e033d76 (patch)
tree768359cf86e41d96fab024f25219d4d5304330da /Lib/idlelib
parent2d8f94532b70162a11c841f38f52f7bac39fbaa5 (diff)
downloadcpython-d3af156ded8cb645c1bd28deae7cde4d0e033d76.zip
cpython-d3af156ded8cb645c1bd28deae7cde4d0e033d76.tar.gz
cpython-d3af156ded8cb645c1bd28deae7cde4d0e033d76.tar.bz2
Issue #24137: Fixed IDLE on Linux with tkinter default root disabled.
Diffstat (limited to 'Lib/idlelib')
-rwxr-xr-xLib/idlelib/pyshell.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py
index 3e8351f..82e77f9 100755
--- a/Lib/idlelib/pyshell.py
+++ b/Lib/idlelib/pyshell.py
@@ -1562,7 +1562,8 @@ def main():
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: