Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Python turtle: How to change icons

747 views
Skip to first unread message

qrious

unread,
Nov 25, 2016, 10:33:22 PM11/25/16
to

Hello All,

I would like to change two graphical icons related to turtle graphics using Python:

a) One that shows up at the top left corner of the canvas window as in below. I believe this is coming from tk itself.

https://s22.postimg.org/tkjaxmh41/image.png

b) The icon on the desktop as in below (in Windows):

https://s13.postimg.org/n7ol0mdpz/icon.png

Can this be done from within python code itself?

Thanks very much.

Terry Reedy

unread,
Nov 26, 2016, 2:59:37 AM11/26/16
to
On 11/25/2016 10:33 PM, qrious wrote:
>
> Hello All,
>
> I would like to change two graphical icons related to turtle graphics using Python:
>
> a) One that shows up at the top left corner of the canvas window as in below. I believe this is coming from tk itself.
>
> https://s22.postimg.org/tkjaxmh41/image.png

That can be changed for app after creating root window and IDLE does so.
See idlelib/pyshell.py (in 3.6, PyShell.py previously), after "# set
application icon". Code is different for Windows and *nix/Mac.

> b) The icon on the desktop as in below (in Windows):
>
> https://s13.postimg.org/n7ol0mdpz/icon.png

This is set during installation. I *presume* (but know no details) that
icon file is loaded somewhat and appropriate registry setting connects
app to icon file.


--
Terry Jan Reedy

0 new messages