def carregarDisciplinas(self): disc = Disciplina() prof = Professor() self.listDisc = disc.listaDb() self.listDiscBox = [] for i in self.listDisc: prof.carregar(i[1]) self.listDiscBox += [str(i[0]) + ' - ' + str(prof.getNome())] self.listaDisciplinasTodas.Set(self.listDiscBox)
def carregarDisc(self): disc = Disciplina() prof = Professor() self.listDisc = disc.listaDb() listDiscBox = [] self.listDiscId = [] for i in self.listDisc: prof.carregar(i[1]) listDiscBox += [str(i[0]) + ' - ' + str(prof.getNome())] self.discListBox.Set(listDiscBox)