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 addData(): if (len(StdID.get()) != 0): DB.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())) tkinter.messagebox.showinfo( "Student Database Management System", "Student Record Added") else: tkinter.messagebox.showinfo( "Student Database Management System", "Please fill all the fields")
def update(): if(len(stdID.get()) != 0): stdDatabase.addStdRec(stdID.get(), firstName.get(), lastName.get(), DoB.get(), Age.get(), Gender.get(), Address.get(), Mobile.get()) studentlist.delete(0, END) studentlist.insert(END, (stdID.get(), firstName.get(), lastName.get(), DoB.get(), Age.get(), Gender.get(), Address.get(), Mobile.get()))