.ico

Which file formats can I use for tkinter icons?

时光总嘲笑我的痴心妄想 提交于 2019-12-09 23:00:32
问题 I know this might be obvious, but in tkinter you can set an icon, but I have found it really hard to find one. I just wanted to know if you have to use the .ico format for the file or if there is a way to use .png or .jpeg files. Currently I have window = Tkinter.Tk() window.title("Weclome!") window.geometry("200x300") window.wm_iconbitmap("Icon.ico") window.configure(background = "Black") That is the whole setup I have and I just want to know about line 4: window.wm_iconbitmap("Icon.ico")

Which file formats can I use for tkinter icons?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 17:33:19
I know this might be obvious, but in tkinter you can set an icon, but I have found it really hard to find one. I just wanted to know if you have to use the .ico format for the file or if there is a way to use .png or .jpeg files. Currently I have window = Tkinter.Tk() window.title("Weclome!") window.geometry("200x300") window.wm_iconbitmap("Icon.ico") window.configure(background = "Black") That is the whole setup I have and I just want to know about line 4: window.wm_iconbitmap("Icon.ico") Thanks for responding to my question, although i am sorry for not spending more time looking into the