You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
453 B

8 years ago
8 years ago
  1. from gooey.gui.model import MyModel
  2. from gooey.gui.presenter import Presenter
  3. from gooey.gui.windows.base_window import BaseWindow
  4. class Controller(object):
  5. def __init__(self, build_spec):
  6. self.model = MyModel(build_spec)
  7. self.view = BaseWindow(layout_type=self.model.layout_type)
  8. self.presentation = Presenter(self.view, self.model)
  9. self.presentation.initialize_view()
  10. def run(self):
  11. self.view.Show(True)