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 ...
Get Python GUI Programming Cookbook 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.