In the preceding section, we learned how to capture events at a granular level and perform certain basic tasks using those events. This can be extended to develop rich Graphical User Interface (GUI) applications involving features such as buttons, checkboxes, radio buttons, sliders, and span controllers. However, this requires quite a bit of programming effort. Hence, Matplotlib has predefined many of these features, called widgets, which we can readily use to develop the GUI applications we need.
In this section, we will learn how to use some of these widgets.