def OnBotaoExcluirButton(self, event):
        prof = Professor()
        if self.campoCPF.GetValue() != '':
            if prof.carregar(self.campoCPF.GetValue()):
                prof.delete(self.campoCPF.GetValue())
                self.erroText.SetLabel('Excluido com Sucesso!')
                self.zerar()
            else:
                self.erroText.SetLabel('CPF nao encontrado!')
                return 0
        else:
            self.erroText.SetLabel('Insira um CPF para excluir um Professor!')
            return 0

        event.Skip()
 def OnBotaoExcluirButton(self, event):
     prof = Professor()
     if self.campoCPF.GetValue() != '':
         if prof.carregar(self.campoCPF.GetValue()):
             prof.delete(self.campoCPF.GetValue())
             self.erroText.SetLabel('Excluido com Sucesso!')
             self.zerar()
         else:
             self.erroText.SetLabel('CPF nao encontrado!')
             return 0
     else:
         self.erroText.SetLabel('Insira um CPF para excluir um Professor!')
         return 0
     
     event.Skip()