from models.Screen import Modelo from VistaMain import Vista class Controlador: def __init__(self, modelo, vista): self.modelo = modelo self.vista = vista # Conectar los botones con sus respectivos frames self.vista.button1.config(command=lambda: self.vista.mostrar_frame("frame1")) self.vista.button2.config(command=lambda: self.vista.mostrar_frame("frame2")) self.vista.button3.config(command=lambda: self.vista.mostrar_frame("frame3")) # Mostrar el frame inicial self.vista.mostrar_frame("frame1")