Answers for "tkinter window with icon"

1

tkinter app icon

import tkinter as tk

root = tk.Tk()
root.iconbitmap("myIcon.ico")
Posted by: Guest on November-24-2020
0

root.iconbitmap

import tkinter as tk
root = tk.Tk()

root.tk.call('wm', 'iconphoto', root._w, tk.PhotoImage(file='/path/to/ico/icon.png')

root.mainloop()
Posted by: Guest on September-25-2020

Python Answers by Framework

Browse Popular Code Answers by Language