How to do it...

In this recipe, we are starting with the GUI_TCP_IP.py file from the previous chapter. We will move the widgets from our Python GUI between the two tabs we created in the previous recipes in order to organize our Python GUI so that it can connect to a MySQL database. Let's take a look at how can we complete this recipe:

  1. Open GUI_TCP_IP.py and save it as GUI_MySQL.py.
  2. Download the full code from the Packt website.
  3. Use a tool such as WinMerge to compare the two versions of the GUI:
  1. Run the code located in GUI_MySQL.py. You will observe the following output:
    1. Now, open MySQL_create_DB.py and save it as MySQL_show_DB.py ...

Get Python GUI Programming Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.