In this recipe, we will create tabbed widgets to further organize our expanding GUI written in tkinter.
Creating tabbed widgets
Getting ready
To improve our Python GUI using tabs, we will start at the beginning, using as little code as possible. In this recipe, we will create a simple GUI and then add widgets from the previous recipes, placing them in this new tabbed layout.
How to do it...
Follow these steps to create Tab controls, which in tkinter are called Notebook:
- Create a new Python module and name it GUI_tabbed.py.
- At the top of the module, import tkinter:
import...