How to put your color icon on the program? If not, how can this be done?

    1 answer 1

    According to the answer . With full path:

    from tkinter import * root = Tk() root.iconbitmap(r'c:\Python32\DLLs\py.ico') root.mainloop() 

    Relative path:

     from tkinter import * root = Tk() root.iconbitmap('py.ico') root.mainloop() 

    This answer also offers the following option:

     imgicon = PhotoImage(file=os.path.join(sp,'myicon.gif')) root.tk.call('wm', 'iconphoto', root._w, imgicon) 
    • Thank you so much!) - Oahav Iryva