예제 #1
0
파일: MAIN.py 프로젝트: TrinhHongNam/Code-
 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()))
예제 #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")
예제 #3
0
 def DeleteData():
     if (len(StdID.get()) != 0):
         stdDatabase.deleteRec(sd[0])
         clearData()
         DisplayData()