Add New Database Record With Treeview - Python Tkinter GUI Tutorial

Published: 18 May 2021
on channel: Codemy.com
12,819
314

In this video I'll show you how to add a new record to the database with our treeview app using tkinter and Python.

Adding a record to the database is pretty straight forward, I'll show you how to do it in this video.

After we add a new record, we want to clear the entry boxes and refresh the treeview to reflect the changes. To

do that we'll clear the treeview completely and then requery the database and output the results back to the cleared treeview.


#tkinter #codemy #JohnElder

Timecodes
0:00​​ - Introduction
1:22 - Create Add_record Function
2:06 - Connect To Database
2:27 - SQL INSERT INTO Execute Command
5:26 - Clear Entry Boxes
6:02 - Clear The Treeview Table
7:21 - Query The Database To Treeview Table
8:33 - Conclusion