Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can change the logo of Tkinter GUI screen

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

like image 966
Ajain Avatar asked Dec 20 '22 14:12

Ajain


1 Answers

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()
like image 138
Alok Avatar answered Dec 27 '22 10:12

Alok