def __init__(self): self.root = tk.Tk() self.ctrlEstudante = est.CtrlEstudante() self.ctrlDisciplina = disc.CtrlDisciplina() self.limite = LimitePrincipal(self.root, self) self.root.title("Exemplo MVC") # Inicia o mainloop self.root.mainloop()
def __init__(self): self.root = tk.Tk() self.ctrlEstudante = est.CtrlEstudante() self.ctrlDisciplina = disc.CtrlDisciplina() self.ctrlTurma = trm.CtrlTurma(self) self.limite = LimitePrincipal(self.root, self) self.root.title("EXEMPLO MVC") self.root.mainloop()