def addData():
     if(len(StdID.get()) != 0):
         stdDatabase_BackEnd.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()))
 def addData():
     if (len(StdID.get()) != 0):
         stdDatabase_BackEnd.addStdRec(StdID.get(), Firstname.get(), Surname.get(), Classroom.get(), Gender.get(), Mobile.get(), \
                                       School_fees.get(), Paid_fees.get(), Remaining_fees.get(), Status.get() ,Phase.get(), Date_paid.get())
         studentlist.delete(0, END)
         studentlist.insert(END,(StdID.get(), Firstname.get(), Surname.get(), Classroom.get(), Gender.get(), Mobile.get(), \
                                      School_fees.get(), Paid_fees.get(), Remaining_fees.get(), Status.get() ,Phase.get(), Date_paid.get()))
Example #3
0
 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(), 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()))
Example #4
0
 def addData():
     if (len(StdID.get()) != 0):
         stdDatabase_BackEnd.addStdRec(StdID.get(), FirstName.get(),
                                       Surname.get(), DoB.get(),
                                       Age.get(), Gender.get(),
                                       Email.get())
         studentlist.delete(0, END)
         studentlist.insert(
             END, (StdID.get(), FirstName.get(), Surname.get(),
                   DoB.get(), Age.get(), Gender.get(), Email.get()))
Example #5
0
        def update():
            if (len(StdID.get()) != 0):
                stdDatabase_BackEnd.deleteRec(sd[0])
            if (len(StdID.get()) != 0):
                stdDatabase_BackEnd.addStdRec(StdID.get(), FirstName.get(),
                                              LastName.get(), DoB.get(),
                                              Age.get(), Gender.get(),
                                              Adress.get(), Mobile.get(),
                                              self.txtImgPath['text'])
                studentlist.delete(0, END)

                studentlist.insert(
                    END, (StdID.get(), FirstName.get(), LastName.get(),
                          DoB.get(), Age.get(), Gender.get(), Adress.get(),
                          Mobile.get(), self.txtImgPath['text']))
Example #6
0
        def addData():
            if (len(StdID.get()) != 0):
                #add into DB
                stdDatabase_BackEnd.addStdRec(StdID.get(), FirstName.get(),
                                              LastName.get(), DoB.get(),
                                              Age.get(), Gender.get(),
                                              Adress.get(), Mobile.get(),
                                              self.txtImgPath['text'])
                studentlist.delete(0, END)
                studentlist.insert(
                    END, (StdID.get(), FirstName.get(), LastName.get(),
                          DoB.get(), Age.get(), Gender.get(), Adress.get(),
                          Mobile.get(), self.txtImgPath['text']))

                subprocess.call(
                    ["python3", "addLines.py",
                     FirstName.get(),
                     StdID.get()])