We will insert, retrieve, and modify our favorite quotations using our Python GUI. We have refactored the MySQL tab of our GUI in preparation for this:
GUI_MySQL.py
In order to make the buttons do something, we will connect them to callback functions as we did in the previous recipes. We will display the data in the ScrolledText widget below the buttons.
In order to do this, we will import the MySQL.py module, as we did before. The entire code that talks to our MySQL server instance and database resides in this module, which is a form of encapsulating the code in the spirit of object-oriented programming.
We connect the Insert ...