Skip to content

Commit abdfb3b

Browse files
bpo-38439: Add 256px IDLE icon (GH-17473)
Icon author: Andrew Clover, bpo-1490384 (cherry picked from commit 3a69f3c) Co-authored-by: Miro Hrončok <[email protected]>
1 parent 7ad3add commit abdfb3b

File tree

6 files changed

+19
-2
lines changed

6 files changed

+19
-2
lines changed

Lib/idlelib/Icons/README.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The IDLE icons are from https://bugs.python.org/issue1490384
2+
3+
Created by Andrew Clover.
4+
5+
The original sources are available from Andrew's website:
6+
https://www.doxdesk.com/software/py/pyicons.html
7+
8+
Various different formats and sizes are available at this GitHub Pull Request:
9+
https://github.com/python/cpython/pull/17473

Lib/idlelib/Icons/idle.icns

-56.1 KB
Binary file not shown.

Lib/idlelib/Icons/idle_256.png

41.8 KB
Loading

Lib/idlelib/pyshell.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,9 +1485,14 @@ def main():
14851485
iconfile = os.path.join(icondir, 'idle.ico')
14861486
root.wm_iconbitmap(default=iconfile)
14871487
elif not macosx.isAquaTk():
1488-
ext = '.png' if TkVersion >= 8.6 else '.gif'
1488+
if TkVersion >= 8.6:
1489+
ext = '.png'
1490+
sizes = (16, 32, 48, 256)
1491+
else:
1492+
ext = '.gif'
1493+
sizes = (16, 32, 48)
14891494
iconfiles = [os.path.join(icondir, 'idle_%d%s' % (size, ext))
1490-
for size in (16, 32, 48)]
1495+
for size in sizes]
14911496
icons = [PhotoImage(master=root, file=iconfile)
14921497
for iconfile in iconfiles]
14931498
root.wm_iconphoto(True, *icons)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Add a 256×256 pixel IDLE icon to support more modern environments. Created by Andrew Clover.
2+
Delete the unused macOS idle.icns icon file.

PCbuild/lib.pyproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,7 @@
15921592
<Content Include="idlelib\Icons\idle_32.png" />
15931593
<Content Include="idlelib\Icons\idle_48.gif" />
15941594
<Content Include="idlelib\Icons\idle_48.png" />
1595+
<Content Include="idlelib\Icons\idle_256.png" />
15951596
<Content Include="idlelib\Icons\minusnode.gif" />
15961597
<Content Include="idlelib\Icons\openfolder.gif" />
15971598
<Content Include="idlelib\Icons\plusnode.gif" />

0 commit comments

Comments
 (0)