Its is Python application that demonstrates how Tkinter GUI and MySql database works and intended as a guidance for beginners. This tested for Windows platform only.
Follow these steps to run the application successfully
- Install MySql server if you haven't already
- Install Python 3 if you haven't already
- Open your cmd/powershell and execute this command
pip install mysql-connector-python
to install Python MySql driver - Next excute this command
pip install tkinter
to install tkinter GUI library - Now open the
app.py
file and change these details as per your MySql installation:cur = con.connect( host='localhost', user='root', password='' )
- That's it now run the
main.py
file, enter some data, click the button and verify the data in your database.