To change the icon you should use iconbitmap
or wm_iconbitmap
I’m under the impression that the file you wish to change it to must be an ico file.
import tkinter as tk
root = tk.Tk()
root.iconbitmap("myIcon.ico")
More Related Contents:
- tkinter TclError: error reading bitmap file
- `new_root.mainloop()` doesn’t make main window unresponsive
- Tkinter module not found on Ubuntu
- Tkinter: How to make a rounded corner text widget?
- tkinter python maximize window
- How to determine what version of python3 tkinter is installed on my linux machine?
- How to Convert python list into nested dictionaries in pythonic way [closed]
- Invalid selector: Compound class names not permitted error using Selenium
- Play an Animated GIF in python with tkinter
- No multiprocessing print outputs (Spyder)
- Clear PyCharm Run Window
- Wait page to load before getting data with requests.get in python 3
- How to use Tor with Chrome browser through Selenium
- How do I include files with pyinstaller?
- How to Install and Use TkDnD with Python Tkinter on OSX?
- Selenium “Unable to find a matching set of capabilities” despite driver being in /usr/local/bin
- ‘python3’ is not recognized as an internal or external command, operable program or batch file
- ModuleNotFoundError: No module named ‘__main__.xxxx’; ‘__main__’ is not a package
- How to create a modal dialog in tkinter?
- python – While Loop causes entire program to crash in Tkinter
- “Eager” Page Load Strategy workaround for Chromedriver Selenium in Python
- How to click on the anchor element when the spinner obscures it using Selenium and Python?
- Python ModuleNotFoundError while importing a module in conftest for Pytest framework
- How do I print colored output with Python 3?
- How to retrieve the whole message body using Gmail API (python)
- selenium.common.exceptions.WebDriverException: Message: unknown error: unable to discover open pages using ChromeDriver through Selenium
- Run process with realtime output to a Tkinter GUI
- How to make a tkinter canvas background transparent?
- Browser Cookie never expires
- Debugging Numpy VisibleDeprecationWarning (ndarray from ragged nested sequences)