Answers for "tkinter title bar icon"

1

set icon title tkinter

# my problme was that, i didnt know that the image format must be .ico
# you can convert your images in https://convertico.com/ and then:

from tkinter import *

root = Tk()
root.title('this is program title')
# icon
root.iconbitmap('image_name.ico')

root.mainloop()
Posted by: Guest on September-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language