コード例 #1
0
ファイル: main_window.py プロジェクト: odile9999/asan
class MainWindowGUI(QMainWindow):

    """ constructor """

    def __init__(self, parent=None):
        super().__init__(parent)
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self)

    def add_data_selector(self):
        self.ds = self.ui.dockWidget_DataSelector
        self.ds.ui.setupUi(self.ui.dockWidget_DataSelector)
        self.ds.setup()

    def add_analysis(self):
        self.ana = self.ui.dockWidget_Analysis
        self.ana.ui.setupUi(self.ui.dockWidget_Analysis)
        self.ana.setup(self.ds)

    def add_parameters(self):
        self.par = self.ui.dockWidget_Parameters
        self.par.ui.setupUi(self.ui.dockWidget_Parameters)
        self.par.setup(self.ana)

    def add_sequence(self):
        self.seq = self.ui.dockWidget_Sequence
        self.seq.ui.setupUi(self.ui.dockWidget_Sequence)
        self.seq.setup()

    def add_plots(self):
        self.plo = self.ui.tabWidget_Plots
        self.plo.setup(self.ana)

    def add_masstab_selector(self):
        self.sel = self.ui.dockWidget_MassTabSelector
        self.sel.ui.setupUi(self.ui.dockWidget_MassTabSelector)
        self.sel.setup(self.ana)

    def add_masstab_viewer(self):
        self.view = self.ui.dockWidget_MassTabViewer
        self.view.ui.setupUi(self.ui.dockWidget_MassTabViewer)
        self.view.setup(self.sel, self.ana)
コード例 #2
0
class MainWindowGUI(QMainWindow):
    """ constructor """
    def __init__(self, parent=None):
        super().__init__(parent)
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self)

    def add_data_selector(self):
        self.ds = self.ui.dockWidget_DataSelector
        self.ds.ui.setupUi(self.ui.dockWidget_DataSelector)
        self.ds.setup()

    def add_analysis(self):
        self.ana = self.ui.dockWidget_Analysis
        self.ana.ui.setupUi(self.ui.dockWidget_Analysis)
        self.ana.setup(self.ds)

    def add_parameters(self):
        self.par = self.ui.dockWidget_Parameters
        self.par.ui.setupUi(self.ui.dockWidget_Parameters)
        self.par.setup(self.ana)

    def add_sequence(self):
        self.seq = self.ui.dockWidget_Sequence
        self.seq.ui.setupUi(self.ui.dockWidget_Sequence)
        self.seq.setup()

    def add_plots(self):
        self.plo = self.ui.tabWidget_Plots
        self.plo.setup(self.ana)

    def add_masstab_selector(self):
        self.sel = self.ui.dockWidget_MassTabSelector
        self.sel.ui.setupUi(self.ui.dockWidget_MassTabSelector)
        self.sel.setup()

    def add_masstab_viewer(self):
        self.view = self.ui.dockWidget_MassTabViewer
        self.view.ui.setupUi(self.ui.dockWidget_MassTabViewer)
        self.view.setup(self.sel, self.ana)
コード例 #3
0
 def __init__(self, parent=None):
     super().__init__(parent)
     self.ui = Ui_MainWindow()
     self.ui.setupUi(self)
コード例 #4
0
ファイル: main_window.py プロジェクト: odile9999/asan
 def __init__(self, parent=None):
     super().__init__(parent)
     self.ui = Ui_MainWindow()
     self.ui.setupUi(self)