def update(): if (len(StdID.get())!=0): stdDatabase.deleteRec(sd[0]) if (len(StdID.get())!= 0): stdDatabase.addStdRec(StdID.get(), Firstname.get(), Surname.get(),DoB.get(), Age.get(), Gender.get(), Address.get(), Mobile.get()) studentlist.delete(0,END) studentlist.insert(END,(StdID.get(), Firstname.get(), Surname.get(),DoB.get(), Age.get(), Gender.get(), Address.get(), Mobile.get()))
def DeleteData(): if (len(StdID.get()) != 0): DB.deleteRec(StdID.get()) tkinter.messagebox.showinfo( "Student Database Management System", "Student Record Deleted") clearData() DisplayData() else: tkinter.messagebox.showinfo( "Student Database Management System", "Cannot Delete Record. Please fill all the fields")
def DeleteData(): if (len(StdID.get()) != 0): stdDatabase.deleteRec(sd[0]) clearData() DisplayData()