Beispiel #1
0
    def excluirProfessor(self):
        prof = Professor()

        prof.idprofessor = self.txtidprofessor.get()

        self.lblmsg["text"] = prof.deleteProfessor()

        self.txtidprofessor.delete(0, END)
        self.txtnome.delete(0, END)
        self.txtcpf.delete(0, END)
        self.txtdepartamento.delete(0, END)
Beispiel #2
0
    def alterarProfessor(self):
        prof = Professor()

        prof.idprofessor = self.txtidprofessor.get()
        prof.nome = self.txtnome.get()
        prof.cpf = self.txtcpf.get()
        prof.departamento = self.txtdepartamento.get()

        self.lblmsg["text"] = prof.updateProfessor

        self.txtidprofessor.delete(0, END)
        self.txtnome.delete(0, END)
        self.txtcpf.delete(0, END)
        self.txtdepartamento.delete(0, END)