0
from tkinter import *

root = Tk()
root.title('Icon')    
root.iconbitmap('Desktop/img.ico')

root.mainloop()

here is the result

I typed the above code. However, the icon is not shown. How can I fix this?

hooon
  • 11
  • 1
  • Does this answer your question? [Set tkinter icon on Mac OS](https://stackoverflow.com/questions/52826692/set-tkinter-icon-on-mac-os) – acw1668 Nov 12 '20 at 05:09
  • @acw1668 seems that the conclusion is the icon next to the title cannot be shown on Mac os. It only works if the program is turned into a .app file – hooon Nov 12 '20 at 05:55

0 Answers0