mirror of https://github.com/chriskiehl/Gooey.git
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
17 lines
453 B
from gooey.gui.model import MyModel
|
|
from gooey.gui.presenter import Presenter
|
|
from gooey.gui.windows.base_window import BaseWindow
|
|
|
|
|
|
class Controller(object):
|
|
|
|
def __init__(self, build_spec):
|
|
self.model = MyModel(build_spec)
|
|
self.view = BaseWindow(layout_type=self.model.layout_type)
|
|
self.presentation = Presenter(self.view, self.model)
|
|
self.presentation.initialize_view()
|
|
|
|
|
|
def run(self):
|
|
self.view.Show(True)
|
|
|