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))
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")
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)
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)
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))
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()
def __init__(self, parent): QtWidgetLoader.__init__(self, ui_module=MyWidgetUI, parent=parent) self.ui.lineEdit.setText("MyWidget")