How can I change the icon

Godson godson.g at gmail.com
Fri Dec 1 04:04:29 EST 2006


On 30 Nov 2006 13:05:23 -0800, Boneh <moonbee5555555555 at yahoo.com> wrote:
>
>
> Boneh wrote:
> > Is it possible to change the icon "Tk" of the windows popped up ?
>
> I am using tkinter for widgets, thanks :-)
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>


user iconbitmap method to change the icon of the window, this method works
on all root or Toplevel windows

iconbitmap(path of the ico file)

Example

from Tkinter import*
root=TK()
root.iconbitmap("c:/python25/smiley.ico")


Godson Gera
http://godson.auroinfo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20061201/dbb377db/attachment.html>


More information about the Python-list mailing list