- Python GUI Programming Cookbook(Second Edition)
- Burkhard A. Meier
- 61字
- 2021-07-09 19:51:08
How to do it...
For this example, I have copied the icon from where I installed Python 3.6 to the same folder where the code lives.

Place the following code somewhere above the main event loop:
# Change the main windows icon
win.iconbitmap('pyc.ico')
Note how the feather default icon in the top-left corner of the GUI changed:
GUI_icon.py
