Book Image

Python GUI Programming Cookbook

By : Burkhard Meier
Book Image

Python GUI Programming Cookbook

By: Burkhard Meier

Overview of this book

Table of Contents (18 chapters)
Python GUI Programming Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Designing the Python GUI database


Before we start creating tables and inserting data into them we have to design the database. Unlike changing local Python variable names, changing a database schema once it has been created and loaded with data is not that easy.

We would have to DROP the table, which means we would lose all the data that was in the table. So, before dropping a table, we would have to extract the data, then DROP the table, and recreate it under a different name and finally reimport the original data.

You get the picture…

Designing our GUI MySQL database means first thinking about what we want our Python application to do with it and then choose names for our tables that match the intended purpose.

Getting ready

We are working with the MySQL database we created in the previous recipe. A running instance of MySQL is necessary and the two previous recipes show how to install MySQL and all necessary additional drivers, as well as how to create the database we are using in this chapter...