[NEWBIE]: Tk icon
Steffen Ries
steffen at cyberus.ca
Mon Sep 13 07:51:04 EDT 1999
"Shannon Watters" <watterss at pilot.msu.edu> writes:
> How can I get rid of the Tk logo in the top left corner of a Tk(inter)
> window? It's 'tacky'. I don't use that word much but it's the best one
> that came to mind when I was staring at it up there. It's making my highly
> complex "Hello world" button look unprofessional (<-spelled?).
don't know, if this works on WINx, but to set the icon in Tkinter, you
do something like:
----8<----
from Tkinter import *
root=Tk()
icon_image = PhotoImage('icon.gif')
icon = Toplevel()
Label(icon, image=icon_image).pack()
root.iconwindow(icon)
----8<----
hth,
/steffen
--
steffen at cyberus.ca <> Gravity is a myth -- the Earth sucks!
More information about the Python-list
mailing list