[Tkinter-discuss] Windows beautification

Michael Lange klappnase at web.de
Thu Nov 23 11:02:09 CET 2006


On Wed, 22 Nov 2006 15:23:05 -0600 (CST)
Sorin Schwimmer <sxn02 at yahoo.com> wrote:

> > I think you need a Toplevel() window instead of a Label.
> 
> > Michael
> 
> I'm not sure I understand. Can you illustrate with an example?
> 
> Thanks,
> Sorin
> 

>>> from Tkinter import *
>>> root = Tk()
>>> top = Toplevel()
>>> img = PhotoImage(file='your-icon-here')
>>> Label(top, image=img).pack()
>>> top.overrideredirect(1)# not sure if this is necessary
>>> root.iconwindow(top)
''
>>>

On linux (with IceWM) the iconwindow is not visible, but at least the Toplevel
disappears and Tk does not complain. Maybe it works on windows.

Michael


More information about the Tkinter-discuss mailing list