Tkinter Query window to execute SQL commands SELECT UPDATE DROP with WHERE to learn and show results
Opening Query window
We will use the Query button to execute the function my_child() to open the child window. Inside this function we will display the Text to collect the user entered SQL.
Executing the query : my_data()
Our function my_data() will receive the query and first it will delete the previous data if any in our main display Text area . Then set the background to white by using config()
We will find out the type of query user has entered, if SELECT word is present then show all the records.