I have tried the following code to change the default Tk logo in the upper left corner:
import Tkinter as Tkinter
class window(Tkinter.Tk):
def __init__(self,parent):
Tkinter.Tk.__init__(self,parent)
self.parent = parent
self.iconbitmap(default='Logo.ico')
self.initialize()
def initialize(self):
self.grid()
if __name__ == "__main__":
app = window(None)
app.title('Window')
app.mainloop()
The problem is that it does nothing.. no error message and no logo change. Logo.ico is a file in the same directory as the script.