def update():
     if(len(StdID.get())!=0):
         stdDatabase_Backend.deleteRec(sd[0])
     if(len(StdID.get())!=0):
         stdDatabase_Backend.addStdRec(StdID.get(),Firstname.get(),Surname.get(),DoB.get(),Age.get(),Address.get(),Mobile.get(),Gender.get())
         studentlist.delete(0,END)
         studentlist.insert(END,(StdID.get(),Firstname.get(),Surname.get(),DoB.get(),Age.get(),Address.get(),Mobile.get(),Gender.get()))
Пример #2
0
 def addData():
     if (len(stdID.get()) != 0):
         stdDatabase_Backend.addStdRec(stdID.get(), Firstname.get(),
                                       Surname.get(), Parents.get(),
                                       DOB.get(), Age.get(),
                                       Branch.get(), Year.get(),
                                       Gender.get(), Mobile.get(),
                                       Bedno.get())
         studentlist.delete(0, END)
         studentlist.insert(
             END, (stdID.get(), Firstname.get(), Surname.get(),
                   Parents.get(), DOB.get(), Age.get(), Branch.get(),
                   Year.get(), Gender.get(), Mobile.get(), Bedno.get()))
 def addData():
     print('addData')
     if (len(stdID.get()) != 0):
         stdDatabase_Backend.addStdRec(stdID.get(), FIRSTNAME.get(),
                                       SURNAME.get(), DOB.get(),
                                       AGE.get(), GENDER.get(),
                                       MOBILE.get())
         print(stdID.get(), FIRSTNAME.get(), SURNAME.get(), DOB.get(),
               AGE.get(), GENDER.get(), MOBILE.get())
         print(StudentRec)
         studentlist.delete(0, END)
         studentlist.insert(
             END, (stdID.get(), FIRSTNAME.get(), SURNAME.get(),
                   DOB.get(), AGE.get(), GENDER.get(), MOBILE.get()))