Well I have this:
import tkinter gui = tkinter.Tk() gui.iconbitmap(default=\'/home/me/PycharmProjects/program/icon.ico\') gui.mainloop()`
B
Still in 2018 a high Rank google question. what works for me in python3 is to use ico in Windows and gif in Linux :
if ( sys.platform.startswith('win')): gui.iconbitmap('logo_Wicon.ico') else: logo = PhotoImage(file='logo.gif') gui.call('wm', 'iconphoto', gui._w, logo)