mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
bpo-38439: Add 256px IDLE icon (GH-17473)
Icon author: Andrew Clover, bpo-1490384
This commit is contained in:
parent
783a673f23
commit
3a69f3caee
6 changed files with 19 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue