Esempio n. 1
0
    def OkAE(self, evt):
        self.dAES.hide()
        "SINAIS PARA JANELA DE VER AES"
        pegar = dados()
        pegar.alunos(self.tfi1.get_text(), self.tfi2.get_text(),
                     self.tfi3.get_text(), self.tfi4.get_text(),
                     self.tfi5.get_text(), self.tfi6.get_text(),
                     self.tfi7.get_text(), self.tfi8.get_text(),
                     self.tfi9.get_text())

        try:
            am = agendaMo()
            am.setpriAE(self.tfi1.get_text())
            am.setsegAE(self.tfi2.get_text())
            am.setterAE(self.tfi3.get_text())
            am.setquarAE(self.tfi4.get_text())
            am.setquiAE(self.tfi5.get_text())
            am.setsexAE(self.tfi6.get_text())
            am.setsetAE(self.tfi7.get_text())
            am.setoiAE(self.tfi8.get_text())
            am.setnoAE(self.tfi9.get_text())
            control = agendaControle()
            if control.inserirAe(am, evt):
                self.defSal.hide()
        except Exception as e:
            print("Erro geral:", str(e))
Esempio n. 2
0
    def okO(self, evt):
        pegar = dados()
        pegar.salas(self.box1.get_active_text(), self.box2.get_active_text(),
                    self.box3.get_active_text(), self.box4.get_active_text(),
                    self.box5.get_active_text(), self.box6.get_active_text(),
                    self.box7.get_active_text(), self.box8.get_active_text(),
                    self.box9.get_active_text())
        self.defSal.hide()

        try:
            am = agendaMo()
            am.setpriSala(self.box1.get_active_text())
            am.setsegSala(self.box2.get_active_text())
            am.setterSala(self.box3.get_active_text())
            am.setquarSala(self.box4.get_active_text())
            am.setquinSala(self.box5.get_active_text())
            am.setsexSala(self.box6.get_active_text())
            am.setsetSala(self.box7.get_active_text())
            am.setoiSala(self.box8.get_active_text())
            am.setnoSala(self.box9.get_active_text())
            control = agendaControle()
            if control.inserirSal(am, evt):
                self.defSal.hide()
        except Exception as e:
            print("Erro geral:", str(e))

        "SINAIS PARA JANELA DE VER ORDEM"
Esempio n. 3
0
 def verO(self, evt):
     self.verSal.show_all()
     control = agendaControle()
     tes = control.selectSal()
     for i in range(0, tes.__len__(), 1):
         self.lab1.set_text(tes[i].getpriSala())
         self.lab2.set_text(tes[i].getsegSala())
         self.lab3.set_text(tes[i].getterSala())
         self.lab4.set_text(tes[i].getquarSala())
         self.lab5.set_text(tes[i].getquinSala())
         self.lab6.set_text(tes[i].getsexSala())
         self.lab7.set_text(tes[i].getsetSala())
         self.lab8.set_text(tes[i].getoiSala())
         self.lab9.set_text(tes[i].getnoSala())
Esempio n. 4
0
 def verAES(self, evt):
     self.vAE.show_all()
     control = agendaControle()
     ai = control.selecionarAes()
     print(ai)
     for i in range(0, ai.__len__(), 1):
         self.labAE1.set_text(ai[i].getpriAE())
         self.labAE2.set_text(ai[i].getsegAE())
         self.labAE3.set_text(ai[i].getterAE())
         self.labAE4.set_text(ai[i].getquarAE())
         self.labAE5.set_text(ai[i].getquiAE())
         self.labAE6.set_text(ai[i].getsexAE())
         self.labAE7.set_text(ai[i].getsetAE())
         self.labAE8.set_text(ai[i].getoiAE())
         self.labAE9.set_text(ai[i].getnoAE())