bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. (GH-12031)

Patch by Kevin Walzer.
(cherry picked from commit 7eebbbd5b3)

Co-authored-by: Ned Deily <nad@python.org>
This commit is contained in:
Miss Islington (bot) 2019-03-01 15:13:57 -08:00 committed by GitHub
parent b94874f7e2
commit 243b2064ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -1495,7 +1495,7 @@ def main():
if system() == 'Windows':
iconfile = os.path.join(icondir, 'idle.ico')
root.wm_iconbitmap(default=iconfile)
else:
elif not macosx.isAquaTk():
ext = '.png' if TkVersion >= 8.6 else '.gif'
iconfiles = [os.path.join(icondir, 'idle_%d%s' % (size, ext))
for size in (16, 32, 48)]

View File

@ -0,0 +1,2 @@
Avoid blurry IDLE application icon on macOS with Tk 8.6. Patch by Kevin
Walzer.