"""Window icon.
   Stand-alone example from Tk Assistant.
   stevepython.wordpress.com"""

from tkinter import Tk

# Create a gui window.
root = Tk()
root.title('Change icon example')

# Ensure the .ico file is in same dir
# as this source code is run from.

# Rename disk.ico to your own icon
root.iconbitmap('disk.ico')

root.mainloop()

95a59d009ec55f4139120d1fb39c5423a44aaede
<mask token>

<mask token>
root.title('Change icon example')
root.iconbitmap('disk.ico')
root.mainloop()

<mask token>
root = Tk()
root.title('Change icon example')
root.iconbitmap('disk.ico')
root.mainloop()

<mask token>
from tkinter import Tk
root = Tk()
root.title('Change icon example')
root.iconbitmap('disk.ico')
root.mainloop()

"""Window icon.
   Stand-alone example from Tk Assistant.
   stevepython.wordpress.com"""

from tkinter import Tk

# Create a gui window.
root = Tk()
root.title('Change icon example')

# Ensure the .ico file is in same dir
# as this source code is run from.

# Rename disk.ico to your own icon
root.iconbitmap('disk.ico')

root.mainloop()
