]> granicus.if.org Git - python/commitdiff
Issue #24137: Fixed IDLE on Linux with tkinter default root disabled.
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 25 Jun 2016 20:52:51 +0000 (23:52 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 25 Jun 2016 20:52:51 +0000 (23:52 +0300)
Lib/idlelib/pyshell.py

index 3e8351fdf3f55b678744381f94c7723c64cbb0a8..82e77f97a171b7c40f23335700bf891d6ff581b5 100755 (executable)
@@ -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: