Beispiel #1
0
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)
Beispiel #2
0
 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()