Tired of the Tk icon in the corner of the form. It's easy to replace with any fancy icon you have. Here is the code ...
Tinkering with the Tk Icon (Python)
# changing the default icon in Tkinter programs
from Tkinter import *
# create the form and a label
form1 = Tk()
lbl1 = Label(form1, text='Changing the Tk icon is very easy!')
lbl1.pack(expand=YES, fill=BOTH)
# change the form/frame icon, use an icon file you have ...
form1.wm_iconbitmap('D:/Python24/py.ico')
form1.wm_title('New Icon')
# run it ...
form1.mainloop()
chrlshrdy 0 Newbie Poster
vegaseat 1,735 DaniWeb's Hypocrite Team Colleague
chrlshrdy 0 Newbie Poster
The-IT 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.