Polish the interface of applications

Gary Richardson garyr at fidalgo.net
Sun Dec 9 21:20:26 EST 2001


You could do something like:
from Tkinter import *
root = Tk()
root.iconbitmap('your_filename.ico')
...

Also, if you search Google with the phrase 'Tk icon' you will find other
ways to
do this.
Gary Richardson


"Xiao-Qin Xia" <xx758 at cam.ac.uk> wrote in message
news:9uqdgq$j1a$1 at pegasus.csx.cam.ac.uk...
> Hi, everybody,
>
> When I run my applications based on Tkinter, there is always a TK icon at
> the left of the title line of the window (northerwest of window), is there
> any way to replace it with my own icon (.bmp, jpg or gif)?
> The other thing is when the application (main.py) is running under windows
> XX, there is always a DOS window opened besides my application window. Is
> there any way to avoid displaying the DOS window?
>
> Cheers,
>
> Xiao-Qin Xia
>
>







More information about the Python-list mailing list