summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2019-03-01 23:12:45 (GMT)
committerGitHub <noreply@github.com>2019-03-01 23:12:45 (GMT)
commit453100f60e3c297226eaf0b0b4eb8c817a73b5ce (patch)
treef96d886dd34d752799fab576c35d86c57e24cb07 /Lib/idlelib/PyShell.py
parent69b4a17f342146d6b7a73975a37678db9916aa75 (diff)
downloadcpython-453100f60e3c297226eaf0b0b4eb8c817a73b5ce.zip
cpython-453100f60e3c297226eaf0b0b4eb8c817a73b5ce.tar.gz
cpython-453100f60e3c297226eaf0b0b4eb8c817a73b5ce.tar.bz2
bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. Original patch by Kevin Walzer. (GH-12034)
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rwxr-xr-xLib/idlelib/PyShell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index db854b6..2ea7e6b 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)]