Toolbox is a container. It can show groups of items separated by tabs. If there are to many items for a toolbar, you may want a toolbox.
A screenshot of a toolbox
QToolBox is shown below.
Download PyQt examples
The code below creates a toolbox with 3 items. The toolbox
QToolBox has a method
The toolbox itself has to be added to a layout, for instance
layout.addWidget(toolbox, 0, 0).
from PyQt5.QtWidgets import *