Ejemplo n.º 1
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.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))
Ejemplo n.º 2
0
 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")
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 5
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.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))
Ejemplo n.º 6
0
 def __init__(self, parent):
     QtWidgetLoader.__init__(self, ui_module=MyWidgetUI, parent=parent)
     self.ui.lineEdit.setText("MyWidget")
Ejemplo n.º 7
0
 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")