I just trying to change the Logo of my Python Tkinter GUI, right now it is displayed as "Tk" at top left corner Somebody please tell me how to change this and write something custom names
1 Answer
Just do this with your root
:
root.wm_iconbitmap('myicon.ico')
Here is a small example:
from Tkinter import *
root = Tk()
root.wm_iconbitmap('myicon.ico')
root.wm_title('Title')
root.mainloop()
-
Hi @Ajain if this or any answer has solved your question please consider accepting it by clicking the check-mark. This indicates to the wider community that you've found a solution and gives some reputation to both the answerer and yourself. There is no obligation to do this.– AlokMay 21, 2014 at 6:50
-
Thank you very much but I am stuck with following error TclError: bitmap "c:/Proj/Images/MyPic1.bmp" not defined– AjainMay 21, 2014 at 6:58
-
1
-