[Python-checkins] bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. Original patch by Kevin Walzer. (GH-12034)
Ned Deily
webhook-mailer at python.org
Fri Mar 1 18:12:49 EST 2019
https://github.com/python/cpython/commit/453100f60e3c297226eaf0b0b4eb8c817a73b5ce
commit: 453100f60e3c297226eaf0b0b4eb8c817a73b5ce
branch: 2.7
author: Ned Deily <nad at python.org>
committer: GitHub <noreply at github.com>
date: 2019-03-01T18:12:45-05:00
summary:
bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. Original patch by Kevin Walzer. (GH-12034)
files:
A Misc/NEWS.d/next/IDLE/2019-02-25-12-59-24.bpo-32129.4qVCzD.rst
M Lib/idlelib/PyShell.py
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index db854b65e22a..2ea7e6b939a6 100755
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -1560,7 +1560,7 @@ def main():
if system() == 'Windows':
iconfile = os.path.join(icondir, 'idle.ico')
root.wm_iconbitmap(default=iconfile)
- elif TkVersion >= 8.5:
+ elif TkVersion >= 8.5 and sys.platform != 'darwin':
ext = '.png' if TkVersion >= 8.6 else '.gif'
iconfiles = [os.path.join(icondir, 'idle_%d%s' % (size, ext))
for size in (16, 32, 48)]
diff --git a/Misc/NEWS.d/next/IDLE/2019-02-25-12-59-24.bpo-32129.4qVCzD.rst b/Misc/NEWS.d/next/IDLE/2019-02-25-12-59-24.bpo-32129.4qVCzD.rst
new file mode 100644
index 000000000000..54a5c7244140
--- /dev/null
+++ b/Misc/NEWS.d/next/IDLE/2019-02-25-12-59-24.bpo-32129.4qVCzD.rst
@@ -0,0 +1,2 @@
+Avoid blurry IDLE application icon on macOS with Tk 8.6. Patch by Kevin
+Walzer.
More information about the Python-checkins
mailing list