Skip to content

Commit d3af156

Browse files
Issue #24137: Fixed IDLE on Linux with tkinter default root disabled.
1 parent 2d8f945 commit d3af156

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/idlelib/pyshell.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,8 @@ def main():
15621562
ext = '.png' if TkVersion >= 8.6 else '.gif'
15631563
iconfiles = [os.path.join(icondir, 'idle_%d%s' % (size, ext))
15641564
for size in (16, 32, 48)]
1565-
icons = [PhotoImage(file=iconfile) for iconfile in iconfiles]
1565+
icons = [PhotoImage(master=root, file=iconfile)
1566+
for iconfile in iconfiles]
15661567
root.wm_iconphoto(True, *icons)
15671568

15681569
# start editor and/or shell windows:

0 commit comments

Comments
 (0)