cpython: a8d611eb6173 (original) (raw)
Mercurial > cpython
changeset 102172:a8d611eb6173
Issue #24137: Fixed IDLE on Linux with tkinter default root disabled. [#24137]
Serhiy Storchaka storchaka@gmail.com | |
---|---|
date | Sat, 25 Jun 2016 23:52:51 +0300 |
parents | ab2e7e51869d |
children | 8d78cd7c4a9e |
files | Lib/idlelib/pyshell.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-)[+] [-] Lib/idlelib/pyshell.py 3 |
line wrap: on
line diff
--- 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][](#l1.7)
icons = [PhotoImage(master=root, file=iconfile)[](#l1.8)
for iconfile in iconfiles][](#l1.9) root.wm_iconphoto(True, *icons)[](#l1.10)