I need to change the icon in the left corner of a window that I created, the code I have as an example is the following, but it does not work:
objeto.tk.call("icone.ico");
How can I do this?
I need to change the icon in the left corner of a window that I created, the code I have as an example is the following, but it does not work:
objeto.tk.call("icone.ico");
How can I do this?
You should use the method iconbitmap
import Tkinter
window = Tkinter.Tk()
window.iconbitmap('CAMINHO_COMPLETO_PARA_O_ICON/ICON.ICO')
window.mainloop()