コード例 #1
0
ファイル: FBGdata.py プロジェクト: dykesk/FUSED-Wake
    def __init__(self, we_file_io):
        try:
            self.ui = MyUI.MyPlotControlUI.Ui_Form(
            )  # Enables autocompletion (if you are lucky...)
        except:
            pass
        QtWidgetLoader.__init__(self, ui_module=MyUI.MyPlotControlUI)
        self.we_file_io = we_file_io

        #Connect widget signals to actionUpdatePlot

        self.ui.horizontalSlider.valueChanged.connect(self.actionUpdatePlot)
        self.ui.spinBox.valueChanged.connect(self.actionUpdatePlot)
        self.ui.doubleSpinBox.valueChanged.connect(self.actionUpdatePlot)
        self.ui.spinBox_2.valueChanged.connect(self.actionUpdatePlot)
        self.ui.doubleSpinBox_2.valueChanged.connect(self.actionUpdatePlot)
        self.ui.radioButton_relative.clicked.connect(self.actionUpdatePlot, )
        self.ui.radioButton_absolute.clicked.connect(self.actionUpdatePlot)
        self.ui.radioButton_relative.clicked.connect(
            lambda: self.ui.doubleSpinBox.setValue(2))
        self.ui.radioButton_relative.clicked.connect(
            lambda: self.ui.spinBox.setValue(0))
        self.ui.radioButton_absolute.clicked.connect(
            lambda: self.ui.doubleSpinBox.setValue(1555))
        self.ui.radioButton_absolute.clicked.connect(
            lambda: self.ui.spinBox.setValue(1550))
コード例 #2
0
ファイル: UseQtGuiLoader.py プロジェクト: luasdtu/MMPE
 def __init__(self, parent):
     ui_module = MyWidgetUI
     try:
         self.ui = ui_module.Ui_Form()  #enable autocomplete
     except:
         pass
     QtWidgetLoader.__init__(self, ui_module, parent=parent)
     self.ui.lineEdit.setText("MyWidget")
コード例 #3
0
 def __init__(self, we_file_io):
     try:self.ui = MyUI.MyPlotControlUI.Ui_Form() # Enables autocompletion (if you are lucky...)
     except: pass
     QtWidgetLoader.__init__(self, ui_module=MyUI.MyPlotControlUI)
     self.we_file_io = we_file_io
             
     #Connect widget signals to actionUpdatePlot
     self.ui.xLineEdit.editingFinished.connect(self.actionUpdatePlot)
     self.ui.yLineEdit.editingFinished.connect(self.actionUpdatePlot)
     self.ui.colorComboBox.currentIndexChanged.connect(self.actionUpdatePlot)
     self.ui.horizontalSlider.valueChanged.connect(self.actionUpdatePlot)
     self.ui.spinBox.valueChanged.connect(self.actionUpdatePlot)
     self.ui.doubleSpinBox.valueChanged.connect(self.actionUpdatePlot)
コード例 #4
0
    def __init__(self, we_file_io):
        try:
            self.ui = MyUI.OmnivorPlotControlUI.Ui_Form(
            )  # Enables autocompletion (if you are lucky...)
        except:
            pass
        QtWidgetLoader.__init__(self, ui_module=MyUI.OmnivorPlotControlUI)
        self.we_file_io = we_file_io

        #Connect widget signals to actionUpdatePlot
        self.ui.xLineEdit.editingFinished.connect(self.actionUpdatePlot)
        self.ui.yLineEdit.editingFinished.connect(self.actionUpdatePlot)
        self.ui.colorComboBox.currentIndexChanged.connect(
            self.actionUpdatePlot)
        self.ui.horizontalSlider.valueChanged.connect(self.actionUpdatePlot)
        self.ui.spinBox.valueChanged.connect(self.actionUpdatePlot)
        self.ui.doubleSpinBox.valueChanged.connect(self.actionUpdatePlot)
コード例 #5
0
ファイル: FBGdata.py プロジェクト: dykesk/FUSED-Wake
 def __init__(self, we_file_io):
     try:self.ui = MyUI.MyPlotControlUI.Ui_Form() # Enables autocompletion (if you are lucky...)
     except: pass
     QtWidgetLoader.__init__(self, ui_module=MyUI.MyPlotControlUI)
     self.we_file_io = we_file_io
             
     #Connect widget signals to actionUpdatePlot
     
     self.ui.horizontalSlider.valueChanged.connect(self.actionUpdatePlot)
     self.ui.spinBox.valueChanged.connect(self.actionUpdatePlot)
     self.ui.doubleSpinBox.valueChanged.connect(self.actionUpdatePlot)
     self.ui.spinBox_2.valueChanged.connect(self.actionUpdatePlot)
     self.ui.doubleSpinBox_2.valueChanged.connect(self.actionUpdatePlot)
     self.ui.radioButton_relative.clicked.connect(self.actionUpdatePlot,)
     self.ui.radioButton_absolute.clicked.connect(self.actionUpdatePlot)
     self.ui.radioButton_relative.clicked.connect(lambda: self.ui.doubleSpinBox.setValue(2))
     self.ui.radioButton_relative.clicked.connect(lambda: self.ui.spinBox.setValue(0))
     self.ui.radioButton_absolute.clicked.connect(lambda: self.ui.doubleSpinBox.setValue(1555))
     self.ui.radioButton_absolute.clicked.connect(lambda: self.ui.spinBox.setValue(1550))
コード例 #6
0
ファイル: UseQtGuiLoader.py プロジェクト: luasdtu/MMPE
 def __init__(self, *args, **kwargs):
     ui_module = MyWidgetUI
     try:
         self.ui = ui_module.Ui_Form()  #enable autocomplete
     except:
         pass
     QtGui.QMainWindow.__init__(self, *args, **kwargs)
     self.widget = QtWidgetLoader(ui_module=ui_module,
                                  parent=self,
                                  action_receiver=self)
     self.widget.ui.lineEdit.setText("MyWidget")
     self.show()
コード例 #7
0
ファイル: UseQtGuiLoader.py プロジェクト: ewanmac/MMPE
 def __init__(self, parent):
     QtWidgetLoader.__init__(self, ui_module=MyWidgetUI, parent=parent)
     self.ui.lineEdit.setText("MyWidget")
コード例 #8
0
ファイル: UseQtGuiLoader.py プロジェクト: luasdtu/MMPE
 def __init__(self, parent):
     ui_module = MyWidgetUI
     try: self.ui = ui_module.Ui_Form()  #enable autocomplete
     except: pass
     QtWidgetLoader.__init__(self, ui_module, parent=parent)
     self.ui.lineEdit.setText("MyWidget")