Esempio n. 1
0
    def __init__(self, parent=None):
        super(FrequencyDomainAnalysisGui, self).__init__(parent)

        groupedViews = view_constructor.ViewConstructor(True, self)
        groupedModels = model_constructor.ModelConstructor(True)
        view = transform_view.TransformView(groupedViews, self)
        self.presenter = transform_presenter.TransformPresenter(
            view, groupedModels)

        self.setCentralWidget(view)
        self.setWindowTitle("Frequency Domain Analysis")
Esempio n. 2
0
 def setUp(self):
     load_utils.LoadUtils=mock.Mock()
     fft_presenter.FFTPresenter=mock.Mock()
     maxent_presenter.MaxEntPresenter=mock.Mock()
     self.view=mock.create_autospec(transform_view.TransformView,spec_set=False)
     self.view.getView=mock.Mock()
     self.view.getMethods=mock.Mock(return_value=["FFT","MaxEnt"])
     self.view.hideAll=mock.Mock()
     self.view.show=mock.Mock()
     self.view.selection=mock.create_autospec(transform_selection_view.TransformSelectionView,spec_set=True)
     self.view.selection.changeMethodSignal=mock.Mock()
     self.model=mock.create_autospec(model_constructor.ModelConstructor)
     self.model.getModel=mock.Mock()
     #set presenter
     self.presenter=transform_presenter.TransformPresenter(self.view,self.model)