This tutorial will teach you how to search using python Gui application connect with mysql. from tkinter import * import mysql.connector def Ok(): global myresult studname = e1.get() coursename = e2.get() fee = e3.get() mysqldb=mysql.connector.connect(host="localhost",user="root",password="",database="smschool") mycursor=mysqldb.cursor() try: mycursor.execute("SELECT * FROM record where id = '" + studname + "'") myresult = mycursor.fetchall() for x in myresult: print(x) e2.delete(0, END) e2.insert(END, …