def __init__(self, parent=None): ui_module = MyWidgetUI try: self.ui = ui_module.Ui_Form() #enable autocomplete except: pass QtMainWindowLoader.__init__(self, ui_module) self.ui.lineEdit.setText("MyMainWindow") self.setWindowTitle("MyMainWindow")
def __init__(self): module = MyUI.MyPlotMainWindowUI try:self.ui = module.Ui_Form() # Enables autocompletion (if you are lucky...) except: pass QtMainWindowLoader.__init__(self, module) mpl = MatplotlibWidget() self.ui.gridLayoutPlot.addWidget(mpl) self.fileio = MyPlotFileIO(mpl) self.ui.gridLayoutControl.addWidget(self.fileio.ui_control)
def __init__(self): QtMainWindowLoader.__init__(self, ui_module=MyWidgetUI) self.setWindowTitle("Mainwindow") #Add as QWidget self.ui.horizontalLayout.addWidget(MyWidget(self)) #Add button that opens as QDialog self.ui.horizontalLayout.addWidget(QtGui.QPushButton("Open dialog", self, clicked=self.open_dialog))
def __init__(self): QtMainWindowLoader.__init__(self, ui_module=MyWidgetUI) self.setWindowTitle("Mainwindow") #Add as QWidget self.ui.horizontalLayout.addWidget(MyWidget(self)) #Add button that opens as QDialog self.ui.horizontalLayout.addWidget( QtGui.QPushButton("Open dialog", self, clicked=self.open_dialog))
def __init__(self): try: self.ui = MyUI.MyPlotControlUI.Ui_Form() # Enables autocompletion (maybe...) except: pass QtMainWindowLoader.__init__(self, ui_module=MyUI.MyPlotControlUI) #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) self.actionUpdatePlot()
def __init__(self): try: self.ui = MyUI.MyPlotControlUI.Ui_Form( ) # Enables autocompletion (maybe...) except: pass QtMainWindowLoader.__init__(self, ui_module=MyUI.MyPlotControlUI) #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) self.actionUpdatePlot()
def __init__(self): """ Initiation of the Main Window """ self.module = GUI.MyPlotMainWindowUI try: self.ui = self.module.Ui_Form() # Enables autocompletion except: pass QtMainWindowLoader.__init__(self, self.module) #Start the MessageBoard used to plot errors self.ui.MessageBoard.insertPlainText('>>') #Empty Dict. with path coordinates (Extract Stress/strain) self.PathCoordinates = {} self.PathNumber = 0 #Empty list with FBG position and FBG array original wavelength-OSA self.FBGPosition = [] self.FBGOriginalWavel = []
def __init__(self): QtMainWindowLoader.__init__(self, PlotUI) self.mpl = MatplotlibWidget() self.ui.mplcontainer.addWidget(self.mpl) self.setWindowIcon(QtGui.QIcon('Pydap.ico'))
def __init__(self): QtMainWindowLoader.__init__(self, MyMainWindowUI)
def __init__(self,parent=None): QtMainWindowLoader.__init__(self, ui_module=MyWidgetUI) self.ui.lineEdit.setText("MyMainWindow") self.setWindowTitle("MyMainWindow")