One way to customize our GUI is to give it an icon different from the default icon that ships out of the box with tkinter. Here is how we do this.
Changing the icon of the main root window
Getting ready
We are improving our GUI from the Creating tabbed widgets recipe in Chapter 2, Layout Management. We will use an icon that ships with Python, but you can use any icon you find useful. Make sure you have the full path to where the icon lives in your code, or you might get errors.
How to do it...
For this example, I have copied the icon from where I installed Python 3.7 to...