Exemplo n.º 1
0
 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")
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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))
Exemplo n.º 4
0
 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")
Exemplo n.º 5
0
 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)
Exemplo n.º 6
0
    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))
Exemplo n.º 7
0
 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()
Exemplo n.º 8
0
    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()
Exemplo n.º 9
0
    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 = []
Exemplo n.º 10
0
 def __init__(self):
     QtMainWindowLoader.__init__(self, PlotUI)
     self.mpl = MatplotlibWidget()
     self.ui.mplcontainer.addWidget(self.mpl)
     self.setWindowIcon(QtGui.QIcon('Pydap.ico'))
Exemplo n.º 11
0
 def __init__(self):
     QtMainWindowLoader.__init__(self, MyMainWindowUI)
Exemplo n.º 12
0
 def __init__(self,parent=None):
     QtMainWindowLoader.__init__(self, ui_module=MyWidgetUI)
     self.ui.lineEdit.setText("MyMainWindow")
     self.setWindowTitle("MyMainWindow")
Exemplo n.º 13
0
 def __init__(self):
     QtMainWindowLoader.__init__(self, PlotUI)
     self.mpl = MatplotlibWidget()
     self.ui.mplcontainer.addWidget(self.mpl)
     self.setWindowIcon(QtGui.QIcon('Pydap.ico'))
Exemplo n.º 14
0
 def __init__(self):
     QtMainWindowLoader.__init__(self, MyMainWindowUI)