예제 #1
0
    def excluirTurma(self):
        tur = Turma()

        tur.idturma = self.txtidturma.get()

        self.lblmsg["text"] = tur.deleteTurma()

        self.txtidturma.delete(0, END)
        self.txtcodigo_turma.delete(0, END)
        self.txtperiodo.delete(0, END)
        self.txtcodigo_disciplina.delete(0, END)
        self.txtcpf_professor.delete(0, END)
        self.txtcpf_aluno.delete(0, END)
예제 #2
0
    def alterarTurma(self):
        tur = Turma()

        tur.idturma = self.txtidturma.get()
        tur.codigo_turma = self.txtcodigo_turma.get()
        tur.periodo = self.txtperiodo.get()
        tur.codigo_disciplina = self.txtcodigo_disciplina.get()
        tur.cpf_professor = self.txtcpf_professor.get()
        tur.cpf_aluno = self.txtcpf_aluno.get()

        self.lblmsg["text"] = tur.insertTurma()

        self.txtidturma.delete(0, END)
        self.txtcodigo_turma.delete(0, END)
        self.txtperiodo.delete(0, END)
        self.txtcodigo_disciplina.delete(0, END)
        self.txtcpf_professor.delete(0, END)
        self.txtcpf_aluno.delete(0, END)