Exemplo n.º 1
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
Exemplo n.º 2
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
Exemplo n.º 3
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()