Ejemplo n.º 1
0
 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()))
Ejemplo n.º 2
0
 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")
Ejemplo n.º 3
0
 def DeleteData():
     if (len(StdID.get()) != 0):
         stdDatabase.deleteRec(sd[0])
         clearData()
         DisplayData()