Ejemplo n.º 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)
Ejemplo n.º 2
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)
Ejemplo n.º 3
0
def subparser_presentation_model(build_spec_subparser):
    app = wx.App(False)
    i18n.load(get_resource_path('languages'), 'english')
    model = MyModel(build_spec_subparser)
    view = MagicMock()
    presentation = Presenter(view, model)
    return presentation
Ejemplo n.º 4
0
def presentation_model(build_spec):
    app = wx.App(False)
    i18n.load(get_resource_path('languages'), build_spec['language'])
    model = MyModel(build_spec)
    view = MagicMock()
    presentation = Presenter(view, model)
    return presentation
Ejemplo n.º 5
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()
Ejemplo n.º 6
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()