diff options
| author | Miro HronĨok <miro@hroncok.cz> | 2020-04-22 09:21:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-22 03:21:44 -0400 |
| commit | 3a69f3caeeaea57048ed3bc3051e16854b9a4cd6 (patch) | |
| tree | 95d2130e8637dd8bee6a423f99881fad3b91e154 /Lib | |
| parent | 783a673f23c5e9ffafe12fe172e119dc0fa2abda (diff) | |
| download | cpython-git-3a69f3caeeaea57048ed3bc3051e16854b9a4cd6.tar.gz | |
bpo-38439: Add 256px IDLE icon (GH-17473)
Icon author: Andrew Clover, bpo-1490384
Diffstat (limited to 'Lib')
| -rw-r--r-- | Lib/idlelib/Icons/README.txt | 9 | ||||
| -rw-r--r-- | Lib/idlelib/Icons/idle.icns | bin | 57435 -> 0 bytes | |||
| -rw-r--r-- | Lib/idlelib/Icons/idle_256.png | bin | 0 -> 42839 bytes | |||
| -rwxr-xr-x | Lib/idlelib/pyshell.py | 9 |
4 files changed, 16 insertions, 2 deletions
diff --git a/Lib/idlelib/Icons/README.txt b/Lib/idlelib/Icons/README.txt new file mode 100644 index 0000000000..8b471629ec --- /dev/null +++ b/Lib/idlelib/Icons/README.txt @@ -0,0 +1,9 @@ +The IDLE icons are from https://bugs.python.org/issue1490384 + +Created by Andrew Clover. + +The original sources are available from Andrew's website: +https://www.doxdesk.com/software/py/pyicons.html + +Various different formats and sizes are available at this GitHub Pull Request: +https://github.com/python/cpython/pull/17473 diff --git a/Lib/idlelib/Icons/idle.icns b/Lib/idlelib/Icons/idle.icns Binary files differdeleted file mode 100644 index f65e3130f0..0000000000 --- a/Lib/idlelib/Icons/idle.icns +++ /dev/null diff --git a/Lib/idlelib/Icons/idle_256.png b/Lib/idlelib/Icons/idle_256.png Binary files differnew file mode 100644 index 0000000000..99ffa6fad4 --- /dev/null +++ b/Lib/idlelib/Icons/idle_256.png diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py index 43fb597c2b..66ae0f7435 100755 --- a/Lib/idlelib/pyshell.py +++ b/Lib/idlelib/pyshell.py @@ -1485,9 +1485,14 @@ def main(): iconfile = os.path.join(icondir, 'idle.ico') root.wm_iconbitmap(default=iconfile) elif not macosx.isAquaTk(): - ext = '.png' if TkVersion >= 8.6 else '.gif' + if TkVersion >= 8.6: + ext = '.png' + sizes = (16, 32, 48, 256) + else: + ext = '.gif' + sizes = (16, 32, 48) iconfiles = [os.path.join(icondir, 'idle_%d%s' % (size, ext)) - for size in (16, 32, 48)] + for size in sizes] icons = [PhotoImage(master=root, file=iconfile) for iconfile in iconfiles] root.wm_iconphoto(True, *icons) |
