Ejemplo n.º 1
0
class Ui_mainView(object):
    def setupUi(self, mainView):
        mainView.setObjectName(_fromUtf8("mainView"))
        mainView.resize(750, 374)
        self.gridLayout = QtGui.QGridLayout(mainView)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.plotView = MatplotlibWidget(mainView)
        self.plotView.setObjectName(_fromUtf8("plotView"))
        self.gridLayout.addWidget(self.plotView, 0, 0, 1, 1)
        self.spectraListView = QtGui.QListView(mainView)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.spectraListView.sizePolicy().hasHeightForWidth())
        self.spectraListView.setSizePolicy(sizePolicy)
        self.spectraListView.setObjectName(_fromUtf8("spectraListView"))
        self.gridLayout.addWidget(self.spectraListView, 0, 1, 1, 1)

        self.retranslateUi(mainView)
        QtCore.QMetaObject.connectSlotsByName(mainView)

    def retranslateUi(self, mainView):
        mainView.setWindowTitle(_translate("mainView", "Spectrum Viewer",
                                           None))
Ejemplo n.º 2
0
    def createMplWidget(self):
        widget = MatplotlibWidget(nrows=1, ncols=1, tight_layout=True)

        widget.figure.clf()
        gs = gridspec.GridSpec(2, 2)
        widget.figure.add_subplot(gs[0, 0])
        widget.figure.add_subplot(gs[0, 1])
        widget.figure.add_subplot(gs[1, :])
        widget.axes = widget.figure.axes

        return widget
Ejemplo n.º 3
0
    def __init__(self, parent):

        QtGui.QWidget.__init__(self, parent)

        iconsFolder = parent.iconsFolder

        self.smrFileSelect = FileSelect('SMR File', 'SMR File( *.smr)')

        fileSelectGrid = QtGui.QGridLayout()

        fileSelectGrid.addWidget(self.smrFileSelect, 0, 0)

        self.startW = TitledText('Start time in s')
        self.endW = TitledText('End time in s')

        startstopGrid = QtGui.QGridLayout()
        startstopGrid.addWidget(self.startW, 0, 0)
        startstopGrid.addWidget(self.endW, 0, 1)

        self.vCalib = TitledText("Voltage Calibration Entry")
        self.ints2Exclude = TitledText("Intervals to Exclude Entry")
        calibrationExclGrid = QtGui.QGridLayout()
        calibrationExclGrid.addWidget(self.vCalib, 0, 0)
        calibrationExclGrid.addWidget(self.ints2Exclude, 0, 1)

        self.mplPlot = MatplotlibWidget(parent=self, mplPars=mplPars)
        prevButton = QtGui.QPushButton(
            QtGui.QIcon(os.path.join(iconsFolder, 'go-previous.png')),
            'Previous', self)
        nextButton = QtGui.QPushButton(
            QtGui.QIcon(os.path.join(iconsFolder, 'go-next.png')), 'Next',
            self)
        self.connect(nextButton, QtCore.SIGNAL('clicked()'),
                     self.plotNextInterval)
        self.connect(prevButton, QtCore.SIGNAL('clicked()'),
                     self.plotPrevInterval)

        plotGrid = QtGui.QGridLayout()
        plotGrid.addWidget(prevButton, 0, 0)
        plotGrid.addWidget(self.mplPlot, 0, 1)
        plotGrid.addWidget(nextButton, 0, 2)

        vbox = QtGui.QVBoxLayout()
        vbox.stretch(1)
        vbox.addLayout(fileSelectGrid)
        vbox.addLayout(startstopGrid)
        vbox.addLayout(calibrationExclGrid)
        vbox.addLayout(plotGrid)

        self.setLayout(vbox)
Ejemplo n.º 4
0
class Ui_mainView(object):
    def setupUi(self, mainView):
        mainView.setObjectName(_fromUtf8("mainView"))
        mainView.resize(750, 374)
        self.gridLayout = QtGui.QGridLayout(mainView)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.plotView = MatplotlibWidget(mainView)
        self.plotView.setObjectName(_fromUtf8("plotView"))
        self.gridLayout.addWidget(self.plotView, 0, 0, 1, 1)
        self.spectraListView = QtGui.QListView(mainView)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spectraListView.sizePolicy().hasHeightForWidth())
        self.spectraListView.setSizePolicy(sizePolicy)
        self.spectraListView.setObjectName(_fromUtf8("spectraListView"))
        self.gridLayout.addWidget(self.spectraListView, 0, 1, 1, 1)

        self.retranslateUi(mainView)
        QtCore.QMetaObject.connectSlotsByName(mainView)

    def retranslateUi(self, mainView):
        mainView.setWindowTitle(_translate("mainView", "Spectrum Viewer", None))
Ejemplo n.º 5
0
class CentralWidget(QtGui.QWidget):
    def __init__(self, parent):

        QtGui.QWidget.__init__(self, parent)

        iconsFolder = parent.iconsFolder

        self.smrFileSelect = FileSelect('SMR File', 'SMR File( *.smr)')

        fileSelectGrid = QtGui.QGridLayout()

        fileSelectGrid.addWidget(self.smrFileSelect, 0, 0)

        self.startW = TitledText('Start time in s')
        self.endW = TitledText('End time in s')

        startstopGrid = QtGui.QGridLayout()
        startstopGrid.addWidget(self.startW, 0, 0)
        startstopGrid.addWidget(self.endW, 0, 1)

        self.vCalib = TitledText("Voltage Calibration Entry")
        self.ints2Exclude = TitledText("Intervals to Exclude Entry")
        calibrationExclGrid = QtGui.QGridLayout()
        calibrationExclGrid.addWidget(self.vCalib, 0, 0)
        calibrationExclGrid.addWidget(self.ints2Exclude, 0, 1)

        self.mplPlot = MatplotlibWidget(parent=self, mplPars=mplPars)
        prevButton = QtGui.QPushButton(
            QtGui.QIcon(os.path.join(iconsFolder, 'go-previous.png')),
            'Previous', self)
        nextButton = QtGui.QPushButton(
            QtGui.QIcon(os.path.join(iconsFolder, 'go-next.png')), 'Next',
            self)
        self.connect(nextButton, QtCore.SIGNAL('clicked()'),
                     self.plotNextInterval)
        self.connect(prevButton, QtCore.SIGNAL('clicked()'),
                     self.plotPrevInterval)

        plotGrid = QtGui.QGridLayout()
        plotGrid.addWidget(prevButton, 0, 0)
        plotGrid.addWidget(self.mplPlot, 0, 1)
        plotGrid.addWidget(nextButton, 0, 2)

        vbox = QtGui.QVBoxLayout()
        vbox.stretch(1)
        vbox.addLayout(fileSelectGrid)
        vbox.addLayout(startstopGrid)
        vbox.addLayout(calibrationExclGrid)
        vbox.addLayout(plotGrid)

        self.setLayout(vbox)

    def load(self):

        vCalibStr = str(self.vCalib.line.text())
        if vCalibStr == '':
            vCalibStr = "20"

        ints2Excl = str(self.ints2Exclude.line.text())
        if ints2Excl == '':
            ints2Excl = None
        self.rdi = RawDataViewer(str(self.smrFileSelect.dirPathW.text()),
                                 forceUnits=True,
                                 voltageCalibStr=vCalibStr,
                                 ints2Exclude=ints2Excl)
        tStart = min(self.rdi.vibrationSignal.t_start,
                     self.rdi.voltageSignal.t_start)
        if self.rdi.currentSignal is not None:
            tStart = min(tStart, self.rdi.currentSignal.t_start)
        tStart.units = qu.s

        self.presentPlotStart = tStart
        self.epochWidth = 20 * qu.s

        self.draw(self.presentPlotStart,
                  self.presentPlotStart + self.epochWidth)

    def refresh(self):

        if not hasattr(self, 'rdi'):
            self.startW.raiseInfo('Please load the data first')

        else:

            startText = self.startW.line.text()
            endText = self.endW.line.text()

            if not startText:
                self.startW.raiseInfo('Please enter a valid starting time.')
            elif not endText:
                self.endW.raiseInfo('Please enter a valid ending time')
            else:
                startTime = float(startText) * qu.s
                endTime = float(endText) * qu.s
                if startTime < self.rdi.vibrationSignal.t_start:
                    self.startW.raiseInfo(
                        'Signal Starts at ' +
                        str(self.rdi.vibrationSignal.t_start) +
                        '. Please enter valid start value.')
                elif endTime > self.rdi.vibrationSignal.t_stop:
                    self.startW.raiseInfo(
                        'Signal End at ' +
                        str(self.rdi.vibrationSignal.t_stop) +
                        '. Please enter valid end value.')
                elif endTime == startTime:
                    self.startW.raiseInfo(
                        'Error: Start and End times are same')
                else:
                    self.draw(startTime, endTime)

                    self.epochWidth = endTime - startTime
                    self.presentPlotStart = startTime

    def draw(self, start=None, end=None):

        if start:
            self.presentPlotStart = start
        self.mplPlot.axes.clear()
        self.rdi.plotVibEpoch(self.mplPlot.axes, [start, end])
        self.mplPlot.draw()

    def plotNextInterval(self):

        if self.presentPlotStart + 2 * self.epochWidth <= self.rdi.voltageSignal.t_stop:

            self.draw(self.presentPlotStart + self.epochWidth,
                      self.presentPlotStart + 2 * self.epochWidth)

    def plotPrevInterval(self):

        if self.presentPlotStart - self.epochWidth >= self.rdi.voltageSignal.t_start:

            self.draw(self.presentPlotStart - self.epochWidth,
                      self.presentPlotStart)
Ejemplo n.º 6
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1100, 800)
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralWidget)
        self.horizontalLayout.setContentsMargins(11, 11, 11, 11)
        self.horizontalLayout.setSpacing(6)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.splitter = QtWidgets.QSplitter(self.centralWidget)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.verticalLayoutWidget = QtWidgets.QWidget(self.splitter)
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(
            self.verticalLayoutWidget)
        self.verticalLayout_2.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.comboBox = QtWidgets.QComboBox(self.verticalLayoutWidget)
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.verticalLayout_2.addWidget(self.comboBox)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.tabWidget = QtWidgets.QTabWidget(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setObjectName("tabWidget")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.pushButton = QtWidgets.QPushButton(self.tab_2)
        self.pushButton.setGeometry(QtCore.QRect(10, 10, 80, 26))
        self.pushButton.setObjectName("pushButton")
        self.pushButton_3 = QtWidgets.QPushButton(self.tab_2)
        self.pushButton_3.setGeometry(QtCore.QRect(10, 74, 80, 26))
        self.pushButton_3.setObjectName("pushButton_3")
        self.pushButton_2 = QtWidgets.QPushButton(self.tab_2)
        self.pushButton_2.setGeometry(QtCore.QRect(10, 42, 80, 26))
        self.pushButton_2.setObjectName("pushButton_2")
        self.quickWidget = QtQuickWidgets.QQuickWidget(self.tab_2)
        self.quickWidget.setGeometry(QtCore.QRect(10, 120, 300, 200))
        self.quickWidget.setResizeMode(
            QtQuickWidgets.QQuickWidget.SizeRootObjectToView)
        self.quickWidget.setObjectName("quickWidget")
        self.tabWidget.addTab(self.tab_2, "")
        self.tab_1 = QtWidgets.QWidget()
        self.tab_1.setMinimumSize(QtCore.QSize(582, 0))
        self.tab_1.setObjectName("tab_1")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_1)
        self.verticalLayout_3.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_3.setSpacing(6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.mplwidget = MatplotlibWidget(self.tab_1)
        self.mplwidget.setObjectName("mplwidget")
        self.verticalLayout_3.addWidget(self.mplwidget)
        self.bucketSlider = QtWidgets.QSlider(self.tab_1)
        self.bucketSlider.setSingleStep(50)
        self.bucketSlider.setPageStep(50)
        self.bucketSlider.setOrientation(QtCore.Qt.Horizontal)
        self.bucketSlider.setObjectName("bucketSlider")
        self.verticalLayout_3.addWidget(self.bucketSlider)
        self.tab1Layout = QtWidgets.QHBoxLayout()
        self.tab1Layout.setSpacing(6)
        self.tab1Layout.setObjectName("tab1Layout")
        self.pb_voltage = QtWidgets.QPushButton(self.tab_1)
        self.pb_voltage.setObjectName("pb_voltage")
        self.tab1Layout.addWidget(self.pb_voltage)
        self.pb_area = QtWidgets.QPushButton(self.tab_1)
        self.pb_area.setObjectName("pb_area")
        self.tab1Layout.addWidget(self.pb_area)
        self.pb_launch = QtWidgets.QPushButton(self.tab_1)
        self.pb_launch.setObjectName("pb_launch")
        self.tab1Layout.addWidget(self.pb_launch)
        self.verticalLayout_3.addLayout(self.tab1Layout)
        self.tabWidget.addTab(self.tab_1, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.tab_4)
        self.horizontalLayout_3.setContentsMargins(11, 11, 11, 11)
        self.horizontalLayout_3.setSpacing(6)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.splitter_2 = QtWidgets.QSplitter(self.tab_4)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName("splitter_2")
        self.layoutWidget = QtWidgets.QWidget(self.splitter_2)
        self.layoutWidget.setObjectName("layoutWidget")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.layoutWidget)
        self.verticalLayout_4.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_4.setSpacing(6)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.mpl_bunch = MatplotlibWidget(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mpl_bunch.sizePolicy().hasHeightForWidth())
        self.mpl_bunch.setSizePolicy(sizePolicy)
        self.mpl_bunch.setObjectName("mpl_bunch")
        self.verticalLayout_4.addWidget(self.mpl_bunch)
        self.horizontalSlider = QtWidgets.QSlider(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.horizontalSlider.sizePolicy().hasHeightForWidth())
        self.horizontalSlider.setSizePolicy(sizePolicy)
        self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider.setObjectName("horizontalSlider")
        self.verticalLayout_4.addWidget(self.horizontalSlider)
        self.gridLayoutWidget = QtWidgets.QWidget(self.splitter_2)
        self.gridLayoutWidget.setObjectName("gridLayoutWidget")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.gridLayoutWidget)
        self.gridLayout_4.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_4.setSpacing(6)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_8 = QtWidgets.QLabel(self.gridLayoutWidget)
        self.label_8.setObjectName("label_8")
        self.gridLayout_4.addWidget(self.label_8, 3, 0, 1, 1)
        self.pb_compute = QtWidgets.QPushButton(self.gridLayoutWidget)
        self.pb_compute.setObjectName("pb_compute")
        self.gridLayout_4.addWidget(self.pb_compute, 6, 0, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.gridLayoutWidget)
        self.label_10.setObjectName("label_10")
        self.gridLayout_4.addWidget(self.label_10, 0, 0, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.gridLayoutWidget)
        self.label_9.setObjectName("label_9")
        self.gridLayout_4.addWidget(self.label_9, 4, 0, 1, 1)
        self.pb_send = QtWidgets.QPushButton(self.gridLayoutWidget)
        self.pb_send.setObjectName("pb_send")
        self.gridLayout_4.addWidget(self.pb_send, 6, 1, 1, 1)
        self.lineEdit_6 = QtWidgets.QLineEdit(self.gridLayoutWidget)
        self.lineEdit_6.setObjectName("lineEdit_6")
        self.gridLayout_4.addWidget(self.lineEdit_6, 0, 1, 1, 1)
        self.lineEdit_8 = QtWidgets.QLineEdit(self.gridLayoutWidget)
        self.lineEdit_8.setObjectName("lineEdit_8")
        self.gridLayout_4.addWidget(self.lineEdit_8, 3, 1, 1, 1)
        self.lineEdit_9 = QtWidgets.QLineEdit(self.gridLayoutWidget)
        self.lineEdit_9.setObjectName("lineEdit_9")
        self.gridLayout_4.addWidget(self.lineEdit_9, 4, 1, 1, 1)
        self.comboBox_2 = QtWidgets.QComboBox(self.gridLayoutWidget)
        self.comboBox_2.setObjectName("comboBox_2")
        self.gridLayout_4.addWidget(self.comboBox_2, 1, 1, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.gridLayoutWidget)
        self.label_11.setObjectName("label_11")
        self.gridLayout_4.addWidget(self.label_11, 1, 0, 1, 1)
        self.frame = QtWidgets.QFrame(self.gridLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setFrameShape(QtWidgets.QFrame.HLine)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setLineWidth(2)
        self.frame.setObjectName("frame")
        self.gridLayout_4.addWidget(self.frame, 5, 0, 1, 2)
        self.frame_2 = QtWidgets.QFrame(self.gridLayoutWidget)
        self.frame_2.setFrameShape(QtWidgets.QFrame.HLine)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setLineWidth(2)
        self.frame_2.setObjectName("frame_2")
        self.gridLayout_4.addWidget(self.frame_2, 2, 0, 1, 2)
        self.horizontalLayout_3.addWidget(self.splitter_2)
        self.tabWidget.addTab(self.tab_4, "")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.tabWidget.addTab(self.tab, "")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.tabWidget.addTab(self.tab_5, "")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.tab_3)
        self.horizontalLayout_2.setContentsMargins(11, 11, 11, 11)
        self.horizontalLayout_2.setSpacing(6)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setSpacing(6)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.ledbutton_2 = LedButton(self.tab_3)
        self.ledbutton_2.setObjectName("ledbutton_2")
        self.gridLayout_3.addWidget(self.ledbutton_2, 0, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.tab_3)
        self.label_6.setObjectName("label_6")
        self.gridLayout_3.addWidget(self.label_6, 0, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_3)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem1)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setSpacing(6)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_4 = QtWidgets.QLabel(self.tab_3)
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.tab_3)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 1)
        self.lineEdit_4 = QtWidgets.QLineEdit(self.tab_3)
        self.lineEdit_4.setObjectName("lineEdit_4")
        self.gridLayout_2.addWidget(self.lineEdit_4, 0, 1, 1, 1)
        self.lineEdit_5 = QtWidgets.QLineEdit(self.tab_3)
        self.lineEdit_5.setObjectName("lineEdit_5")
        self.gridLayout_2.addWidget(self.lineEdit_5, 1, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_2)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem2)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setSpacing(6)
        self.gridLayout.setObjectName("gridLayout")
        self.lineEdit = QtWidgets.QLineEdit(self.tab_3)
        self.lineEdit.setObjectName("lineEdit")
        self.gridLayout.addWidget(self.lineEdit, 2, 1, 1, 1)
        self.lineEdit_3 = QtWidgets.QLineEdit(self.tab_3)
        self.lineEdit_3.setObjectName("lineEdit_3")
        self.gridLayout.addWidget(self.lineEdit_3, 4, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.tab_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 3, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.tab_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 2, 0, 1, 1)
        self.lineEdit_2 = QtWidgets.QLineEdit(self.tab_3)
        self.lineEdit_2.setObjectName("lineEdit_2")
        self.gridLayout.addWidget(self.lineEdit_2, 3, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.tab_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1)
        self.lineEdit_7 = QtWidgets.QLineEdit(self.tab_3)
        self.lineEdit_7.setObjectName("lineEdit_7")
        self.gridLayout.addWidget(self.lineEdit_7, 1, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.tab_3)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 1, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.horizontalLayout_2.addLayout(self.verticalLayout)
        self.mplwidget_2 = MatplotlibWidget(self.tab_3)
        self.mplwidget_2.setObjectName("mplwidget_2")
        self.horizontalLayout_2.addWidget(self.mplwidget_2)
        self.tabWidget.addTab(self.tab_3, "")
        self.horizontalLayout.addWidget(self.splitter)
        MainWindow.setCentralWidget(self.centralWidget)
        self.menuBar = QtWidgets.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 1100, 23))
        self.menuBar.setObjectName("menuBar")
        MainWindow.setMenuBar(self.menuBar)
        self.mainToolBar = QtWidgets.QToolBar(MainWindow)
        self.mainToolBar.setObjectName("mainToolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(2)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Ejemplo n.º 7
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1100, 800)
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralWidget)
        self.horizontalLayout.setContentsMargins(11, 11, 11, 11)
        self.horizontalLayout.setSpacing(6)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.splitter = QtWidgets.QSplitter(self.centralWidget)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.verticalLayoutWidget = QtWidgets.QWidget(self.splitter)
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(
            self.verticalLayoutWidget)
        self.verticalLayout_2.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.comboBox = QtWidgets.QComboBox(self.verticalLayoutWidget)
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.verticalLayout_2.addWidget(self.comboBox)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.tabWidget = QtWidgets.QTabWidget(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setObjectName("tabWidget")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.pushButton = QtWidgets.QPushButton(self.tab_2)
        self.pushButton.setGeometry(QtCore.QRect(10, 10, 80, 26))
        self.pushButton.setObjectName("pushButton")
        self.pushButton_3 = QtWidgets.QPushButton(self.tab_2)
        self.pushButton_3.setGeometry(QtCore.QRect(10, 74, 80, 26))
        self.pushButton_3.setObjectName("pushButton_3")
        self.pushButton_2 = QtWidgets.QPushButton(self.tab_2)
        self.pushButton_2.setGeometry(QtCore.QRect(10, 42, 80, 26))
        self.pushButton_2.setObjectName("pushButton_2")
        self.quickWidget = QtQuickWidgets.QQuickWidget(self.tab_2)
        self.quickWidget.setGeometry(QtCore.QRect(10, 120, 300, 200))
        self.quickWidget.setResizeMode(
            QtQuickWidgets.QQuickWidget.SizeRootObjectToView)
        self.quickWidget.setObjectName("quickWidget")
        self.tabWidget.addTab(self.tab_2, "")
        self.tab_1 = QtWidgets.QWidget()
        self.tab_1.setMinimumSize(QtCore.QSize(582, 0))
        self.tab_1.setObjectName("tab_1")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_1)
        self.verticalLayout_3.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_3.setSpacing(6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.mplwidget = MatplotlibWidget(self.tab_1)
        self.mplwidget.setObjectName("mplwidget")
        self.verticalLayout_3.addWidget(self.mplwidget)
        self.bucketSlider = QtWidgets.QSlider(self.tab_1)
        self.bucketSlider.setSingleStep(50)
        self.bucketSlider.setPageStep(50)
        self.bucketSlider.setOrientation(QtCore.Qt.Horizontal)
        self.bucketSlider.setObjectName("bucketSlider")
        self.verticalLayout_3.addWidget(self.bucketSlider)
        self.tab1Layout = QtWidgets.QHBoxLayout()
        self.tab1Layout.setSpacing(6)
        self.tab1Layout.setObjectName("tab1Layout")
        self.pb_voltage = QtWidgets.QPushButton(self.tab_1)
        self.pb_voltage.setObjectName("pb_voltage")
        self.tab1Layout.addWidget(self.pb_voltage)
        self.pb_area = QtWidgets.QPushButton(self.tab_1)
        self.pb_area.setObjectName("pb_area")
        self.tab1Layout.addWidget(self.pb_area)
        self.pb_launch = QtWidgets.QPushButton(self.tab_1)
        self.pb_launch.setObjectName("pb_launch")
        self.tab1Layout.addWidget(self.pb_launch)
        self.verticalLayout_3.addLayout(self.tab1Layout)
        self.tabWidget.addTab(self.tab_1, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.tab_4)
        self.horizontalLayout_3.setContentsMargins(11, 11, 11, 11)
        self.horizontalLayout_3.setSpacing(6)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.splitter_2 = QtWidgets.QSplitter(self.tab_4)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName("splitter_2")
        self.layoutWidget = QtWidgets.QWidget(self.splitter_2)
        self.layoutWidget.setObjectName("layoutWidget")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.layoutWidget)
        self.verticalLayout_4.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_4.setSpacing(6)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.mpl_bunch = MatplotlibWidget(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mpl_bunch.sizePolicy().hasHeightForWidth())
        self.mpl_bunch.setSizePolicy(sizePolicy)
        self.mpl_bunch.setObjectName("mpl_bunch")
        self.verticalLayout_4.addWidget(self.mpl_bunch)
        self.horizontalSlider = QtWidgets.QSlider(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.horizontalSlider.sizePolicy().hasHeightForWidth())
        self.horizontalSlider.setSizePolicy(sizePolicy)
        self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider.setObjectName("horizontalSlider")
        self.verticalLayout_4.addWidget(self.horizontalSlider)
        self.gridLayoutWidget = QtWidgets.QWidget(self.splitter_2)
        self.gridLayoutWidget.setObjectName("gridLayoutWidget")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.gridLayoutWidget)
        self.gridLayout_4.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_4.setSpacing(6)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_8 = QtWidgets.QLabel(self.gridLayoutWidget)
        self.label_8.setObjectName("label_8")
        self.gridLayout_4.addWidget(self.label_8, 3, 0, 1, 1)
        self.pb_compute = QtWidgets.QPushButton(self.gridLayoutWidget)
        self.pb_compute.setObjectName("pb_compute")
        self.gridLayout_4.addWidget(self.pb_compute, 6, 0, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.gridLayoutWidget)
        self.label_10.setObjectName("label_10")
        self.gridLayout_4.addWidget(self.label_10, 0, 0, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.gridLayoutWidget)
        self.label_9.setObjectName("label_9")
        self.gridLayout_4.addWidget(self.label_9, 4, 0, 1, 1)
        self.pb_send = QtWidgets.QPushButton(self.gridLayoutWidget)
        self.pb_send.setObjectName("pb_send")
        self.gridLayout_4.addWidget(self.pb_send, 6, 1, 1, 1)
        self.lineEdit_6 = QtWidgets.QLineEdit(self.gridLayoutWidget)
        self.lineEdit_6.setObjectName("lineEdit_6")
        self.gridLayout_4.addWidget(self.lineEdit_6, 0, 1, 1, 1)
        self.lineEdit_8 = QtWidgets.QLineEdit(self.gridLayoutWidget)
        self.lineEdit_8.setObjectName("lineEdit_8")
        self.gridLayout_4.addWidget(self.lineEdit_8, 3, 1, 1, 1)
        self.lineEdit_9 = QtWidgets.QLineEdit(self.gridLayoutWidget)
        self.lineEdit_9.setObjectName("lineEdit_9")
        self.gridLayout_4.addWidget(self.lineEdit_9, 4, 1, 1, 1)
        self.comboBox_2 = QtWidgets.QComboBox(self.gridLayoutWidget)
        self.comboBox_2.setObjectName("comboBox_2")
        self.gridLayout_4.addWidget(self.comboBox_2, 1, 1, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.gridLayoutWidget)
        self.label_11.setObjectName("label_11")
        self.gridLayout_4.addWidget(self.label_11, 1, 0, 1, 1)
        self.frame = QtWidgets.QFrame(self.gridLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setFrameShape(QtWidgets.QFrame.HLine)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setLineWidth(2)
        self.frame.setObjectName("frame")
        self.gridLayout_4.addWidget(self.frame, 5, 0, 1, 2)
        self.frame_2 = QtWidgets.QFrame(self.gridLayoutWidget)
        self.frame_2.setFrameShape(QtWidgets.QFrame.HLine)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setLineWidth(2)
        self.frame_2.setObjectName("frame_2")
        self.gridLayout_4.addWidget(self.frame_2, 2, 0, 1, 2)
        self.horizontalLayout_3.addWidget(self.splitter_2)
        self.tabWidget.addTab(self.tab_4, "")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.tabWidget.addTab(self.tab, "")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.tabWidget.addTab(self.tab_5, "")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.tab_3)
        self.horizontalLayout_2.setContentsMargins(11, 11, 11, 11)
        self.horizontalLayout_2.setSpacing(6)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setSpacing(6)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.ledbutton_2 = LedButton(self.tab_3)
        self.ledbutton_2.setObjectName("ledbutton_2")
        self.gridLayout_3.addWidget(self.ledbutton_2, 0, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.tab_3)
        self.label_6.setObjectName("label_6")
        self.gridLayout_3.addWidget(self.label_6, 0, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_3)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem1)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setSpacing(6)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_4 = QtWidgets.QLabel(self.tab_3)
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.tab_3)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 1)
        self.lineEdit_4 = QtWidgets.QLineEdit(self.tab_3)
        self.lineEdit_4.setObjectName("lineEdit_4")
        self.gridLayout_2.addWidget(self.lineEdit_4, 0, 1, 1, 1)
        self.lineEdit_5 = QtWidgets.QLineEdit(self.tab_3)
        self.lineEdit_5.setObjectName("lineEdit_5")
        self.gridLayout_2.addWidget(self.lineEdit_5, 1, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_2)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem2)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setSpacing(6)
        self.gridLayout.setObjectName("gridLayout")
        self.lineEdit = QtWidgets.QLineEdit(self.tab_3)
        self.lineEdit.setObjectName("lineEdit")
        self.gridLayout.addWidget(self.lineEdit, 2, 1, 1, 1)
        self.lineEdit_3 = QtWidgets.QLineEdit(self.tab_3)
        self.lineEdit_3.setObjectName("lineEdit_3")
        self.gridLayout.addWidget(self.lineEdit_3, 4, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.tab_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 3, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.tab_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 2, 0, 1, 1)
        self.lineEdit_2 = QtWidgets.QLineEdit(self.tab_3)
        self.lineEdit_2.setObjectName("lineEdit_2")
        self.gridLayout.addWidget(self.lineEdit_2, 3, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.tab_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1)
        self.lineEdit_7 = QtWidgets.QLineEdit(self.tab_3)
        self.lineEdit_7.setObjectName("lineEdit_7")
        self.gridLayout.addWidget(self.lineEdit_7, 1, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.tab_3)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 1, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.horizontalLayout_2.addLayout(self.verticalLayout)
        self.mplwidget_2 = MatplotlibWidget(self.tab_3)
        self.mplwidget_2.setObjectName("mplwidget_2")
        self.horizontalLayout_2.addWidget(self.mplwidget_2)
        self.tabWidget.addTab(self.tab_3, "")
        self.horizontalLayout.addWidget(self.splitter)
        MainWindow.setCentralWidget(self.centralWidget)
        self.menuBar = QtWidgets.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 1100, 23))
        self.menuBar.setObjectName("menuBar")
        MainWindow.setMenuBar(self.menuBar)
        self.mainToolBar = QtWidgets.QToolBar(MainWindow)
        self.mainToolBar.setObjectName("mainToolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(2)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.comboBox.setItemText(0, _translate("MainWindow", "LHC"))
        self.comboBox.setItemText(1, _translate("MainWindow", "SFTPRO"))
        self.comboBox.setItemText(2, _translate("MainWindow", "LHCION"))
        self.comboBox.setItemText(3, _translate("MainWindow", "SFTION"))
        self.pushButton.setText(_translate("MainWindow", "PushButton"))
        self.pushButton_3.setText(_translate("MainWindow", "PushButton"))
        self.pushButton_2.setText(_translate("MainWindow", "PushButton"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2),
                                  _translate("MainWindow", "Injection"))
        self.pb_voltage.setText(_translate("MainWindow", "Voltage"))
        self.pb_area.setText(_translate("MainWindow", "Area"))
        self.pb_launch.setText(_translate("MainWindow", "Launch"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_1),
                                  _translate("MainWindow", "RF Cycle"))
        self.label_8.setText(_translate("MainWindow", "Emittance"))
        self.pb_compute.setText(
            _translate("MainWindow", "Compute Voltage Program"))
        self.label_10.setText(_translate("MainWindow", "Bunch Intensity"))
        self.label_9.setText(_translate("MainWindow", "Filling factor"))
        self.pb_send.setText(_translate("MainWindow", "Send Voltage Program"))
        self.label_11.setText(_translate("MainWindow", "Impedance Model"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4),
                                  _translate("MainWindow", "RF Bucket"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab),
                                  _translate("MainWindow", "200 MHz Cavities"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5),
                                  _translate("MainWindow", "800 MHz Cavities"))
        self.label_6.setText(_translate("MainWindow", "FFA"))
        self.label_4.setText(_translate("MainWindow", "Modulations per turn"))
        self.label_5.setText(_translate("MainWindow", "Modulations offset"))
        self.label_2.setText(_translate("MainWindow", "Injection B-Field"))
        self.label.setText(_translate("MainWindow",
                                      "Cavity central frequency"))
        self.label_3.setText(_translate("MainWindow", "Magic h"))
        self.label_7.setText(
            _translate("MainWindow", "Duration of frequency ramp"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3),
                                  _translate("MainWindow", "Ions FFA"))
Ejemplo n.º 8
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(749, 585)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.RUNButton = QtGui.QPushButton(self.centralwidget)
        self.RUNButton.setGeometry(QtCore.QRect(500, 470, 74, 20))
        self.RUNButton.setObjectName("RUNButton")
        self.verticalLayoutWidget = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 20, 118, 81))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.splitter_2 = QtGui.QSplitter(self.verticalLayoutWidget)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName("splitter_2")
        self.label_2 = QtGui.QLabel(self.splitter_2)
        self.label_2.setObjectName("label_2")
        self.dim_x = QtGui.QLineEdit(self.splitter_2)
        self.dim_x.setObjectName("dim_x")
        self.verticalLayout.addWidget(self.splitter_2)
        self.splitter = QtGui.QSplitter(self.verticalLayoutWidget)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.label = QtGui.QLabel(self.splitter)
        self.label.setObjectName("label")
        self.dim_y = QtGui.QLineEdit(self.splitter)
        self.dim_y.setObjectName("dim_y")
        self.verticalLayout.addWidget(self.splitter)
        self.splitter_3 = QtGui.QSplitter(self.verticalLayoutWidget)
        self.splitter_3.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_3.setObjectName("splitter_3")
        self.splitter_4 = QtGui.QSplitter(self.splitter_3)
        self.splitter_4.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_4.setObjectName("splitter_4")
        self.label_3 = QtGui.QLabel(self.splitter_4)
        self.label_3.setObjectName("label_3")
        self.spacing = QtGui.QLineEdit(self.splitter_4)
        self.spacing.setObjectName("spacing")
        self.verticalLayout.addWidget(self.splitter_3)
        self.verticalLayoutWidget_2 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(
            10, 200, 121, 147))
        self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_5 = QtGui.QLabel(self.verticalLayoutWidget_2)
        self.label_5.setObjectName("label_5")
        self.verticalLayout_2.addWidget(self.label_5)
        self.splitter_6 = QtGui.QSplitter(self.verticalLayoutWidget_2)
        self.splitter_6.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_6.setObjectName("splitter_6")
        self.label_6 = QtGui.QLabel(self.splitter_6)
        self.label_6.setObjectName("label_6")
        self.head_up = QtGui.QLineEdit(self.splitter_6)
        self.head_up.setObjectName("head_up")
        self.verticalLayout_2.addWidget(self.splitter_6)
        self.splitter_7 = QtGui.QSplitter(self.verticalLayoutWidget_2)
        self.splitter_7.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_7.setObjectName("splitter_7")
        self.label_7 = QtGui.QLabel(self.splitter_7)
        self.label_7.setObjectName("label_7")
        self.head_down = QtGui.QLineEdit(self.splitter_7)
        self.head_down.setObjectName("head_down")
        self.verticalLayout_2.addWidget(self.splitter_7)
        self.splitter_9 = QtGui.QSplitter(self.verticalLayoutWidget_2)
        self.splitter_9.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_9.setObjectName("splitter_9")
        self.label_9 = QtGui.QLabel(self.splitter_9)
        self.label_9.setObjectName("label_9")
        self.k = QtGui.QLineEdit(self.splitter_9)
        self.k.setObjectName("k")
        self.verticalLayout_2.addWidget(self.splitter_9)
        self.splitter_8 = QtGui.QSplitter(self.verticalLayoutWidget_2)
        self.splitter_8.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_8.setObjectName("splitter_8")
        self.label_8 = QtGui.QLabel(self.splitter_8)
        self.label_8.setObjectName("label_8")
        self.n = QtGui.QLineEdit(self.splitter_8)
        self.n.setObjectName("n")
        self.verticalLayout_2.addWidget(self.splitter_8)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.line_bc = QtGui.QRadioButton(self.verticalLayoutWidget_2)
        self.line_bc.setEnabled(True)
        self.line_bc.setObjectName("line_bc")
        self.horizontalLayout.addWidget(self.line_bc)
        self.constant_bc = QtGui.QRadioButton(self.verticalLayoutWidget_2)
        self.constant_bc.setObjectName("constant_bc")
        self.horizontalLayout.addWidget(self.constant_bc)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.verticalLayoutWidget_3 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(10, 100, 136, 94))
        self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3")
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalLayoutWidget_3)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.label_13 = QtGui.QLabel(self.verticalLayoutWidget_3)
        self.label_13.setObjectName("label_13")
        self.verticalLayout_3.addWidget(self.label_13)
        self.splitter_10 = QtGui.QSplitter(self.verticalLayoutWidget_3)
        self.splitter_10.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_10.setObjectName("splitter_10")
        self.label_10 = QtGui.QLabel(self.splitter_10)
        self.label_10.setObjectName("label_10")
        self.max_iter_flow = QtGui.QLineEdit(self.splitter_10)
        self.max_iter_flow.setObjectName("max_iter_flow")
        self.verticalLayout_3.addWidget(self.splitter_10)
        self.splitter_5 = QtGui.QSplitter(self.verticalLayoutWidget_3)
        self.splitter_5.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_5.setObjectName("splitter_5")
        self.label_4 = QtGui.QLabel(self.splitter_5)
        self.label_4.setObjectName("label_4")
        self.w_SOR = QtGui.QLineEdit(self.splitter_5)
        self.w_SOR.setObjectName("w_SOR")
        self.verticalLayout_3.addWidget(self.splitter_5)
        self.splitter_11 = QtGui.QSplitter(self.verticalLayoutWidget_3)
        self.splitter_11.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_11.setObjectName("splitter_11")
        self.label_12 = QtGui.QLabel(self.splitter_11)
        self.label_12.setObjectName("label_12")
        self.convergence_limit = QtGui.QLineEdit(self.splitter_11)
        self.convergence_limit.setObjectName("convergence_limit")
        self.verticalLayout_3.addWidget(self.splitter_11)
        self.verticalLayoutWidget_4 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_4.setGeometry(QtCore.QRect(
            10, 350, 123, 179))
        self.verticalLayoutWidget_4.setObjectName("verticalLayoutWidget_4")
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.verticalLayoutWidget_4)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.do_random_walk = QtGui.QCheckBox(self.verticalLayoutWidget_4)
        self.do_random_walk.setObjectName("do_random_walk")
        self.verticalLayout_4.addWidget(self.do_random_walk)
        self.splitter_12 = QtGui.QSplitter(self.verticalLayoutWidget_4)
        self.splitter_12.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_12.setObjectName("splitter_12")
        self.label_14 = QtGui.QLabel(self.splitter_12)
        self.label_14.setObjectName("label_14")
        self.deltaT_rw = QtGui.QLineEdit(self.splitter_12)
        self.deltaT_rw.setObjectName("deltaT_rw")
        self.verticalLayout_4.addWidget(self.splitter_12)
        self.splitter_13 = QtGui.QSplitter(self.verticalLayoutWidget_4)
        self.splitter_13.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_13.setObjectName("splitter_13")
        self.label_15 = QtGui.QLabel(self.splitter_13)
        self.label_15.setObjectName("label_15")
        self.max_iter_rw = QtGui.QLineEdit(self.splitter_13)
        self.max_iter_rw.setObjectName("max_iter_rw")
        self.verticalLayout_4.addWidget(self.splitter_13)
        self.splitter_15 = QtGui.QSplitter(self.verticalLayoutWidget_4)
        self.splitter_15.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_15.setObjectName("splitter_15")
        self.label_17 = QtGui.QLabel(self.splitter_15)
        self.label_17.setObjectName("label_17")
        self.DL = QtGui.QLineEdit(self.splitter_15)
        self.DL.setObjectName("DL")
        self.verticalLayout_4.addWidget(self.splitter_15)
        self.splitter_16 = QtGui.QSplitter(self.verticalLayoutWidget_4)
        self.splitter_16.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_16.setObjectName("splitter_16")
        self.label_18 = QtGui.QLabel(self.splitter_16)
        self.label_18.setObjectName("label_18")
        self.DT = QtGui.QLineEdit(self.splitter_16)
        self.DT.setObjectName("DT")
        self.verticalLayout_4.addWidget(self.splitter_16)
        self.splitter_14 = QtGui.QSplitter(self.verticalLayoutWidget_4)
        self.splitter_14.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_14.setObjectName("splitter_14")
        self.label_16 = QtGui.QLabel(self.splitter_14)
        self.label_16.setObjectName("label_16")
        self.particle_num = QtGui.QLineEdit(self.splitter_14)
        self.particle_num.setObjectName("particle_num")
        self.verticalLayout_4.addWidget(self.splitter_14)
        self.splitter_18 = QtGui.QSplitter(self.verticalLayoutWidget_4)
        self.splitter_18.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_18.setObjectName("splitter_18")
        self.splitter_17 = QtGui.QSplitter(self.splitter_18)
        self.splitter_17.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_17.setObjectName("splitter_17")
        self.label_19 = QtGui.QLabel(self.splitter_17)
        self.label_19.setObjectName("label_19")
        self.x_rw = QtGui.QLineEdit(self.splitter_17)
        self.x_rw.setObjectName("x_rw")
        self.y_rw = QtGui.QLineEdit(self.splitter_18)
        self.y_rw.setObjectName("y_rw")
        self.verticalLayout_4.addWidget(self.splitter_18)
        self.verticalLayoutWidget_5 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_5.setGeometry(
            QtCore.QRect(150, 400, 160, 128))
        self.verticalLayoutWidget_5.setObjectName("verticalLayoutWidget_5")
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.verticalLayoutWidget_5)
        self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.checkBox_2 = QtGui.QCheckBox(self.verticalLayoutWidget_5)
        self.checkBox_2.setObjectName("checkBox_2")
        self.verticalLayout_5.addWidget(self.checkBox_2)
        self.splitter_19 = QtGui.QSplitter(self.verticalLayoutWidget_5)
        self.splitter_19.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_19.setObjectName("splitter_19")
        self.label_20 = QtGui.QLabel(self.splitter_19)
        self.label_20.setObjectName("label_20")
        self.background_C = QtGui.QLineEdit(self.splitter_19)
        self.background_C.setObjectName("background_C")
        self.verticalLayout_5.addWidget(self.splitter_19)
        self.splitter_21 = QtGui.QSplitter(self.verticalLayoutWidget_5)
        self.splitter_21.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_21.setObjectName("splitter_21")
        self.label_22 = QtGui.QLabel(self.splitter_21)
        self.label_22.setObjectName("label_22")
        self.initial_C = QtGui.QLineEdit(self.splitter_21)
        self.initial_C.setObjectName("initial_C")
        self.verticalLayout_5.addWidget(self.splitter_21)
        self.splitter_20 = QtGui.QSplitter(self.verticalLayoutWidget_5)
        self.splitter_20.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_20.setObjectName("splitter_20")
        self.label_21 = QtGui.QLabel(self.splitter_20)
        self.label_21.setObjectName("label_21")
        self.max_iter_adv = QtGui.QLineEdit(self.splitter_20)
        self.max_iter_adv.setObjectName("max_iter_adv")
        self.verticalLayout_5.addWidget(self.splitter_20)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.line_bc_adv = QtGui.QRadioButton(self.verticalLayoutWidget_5)
        self.line_bc_adv.setEnabled(True)
        self.line_bc_adv.setObjectName("line_bc_adv")
        self.horizontalLayout_2.addWidget(self.line_bc_adv)
        self.constant_bc_adv = QtGui.QRadioButton(self.verticalLayoutWidget_5)
        self.constant_bc_adv.setObjectName("constant_bc_adv")
        self.horizontalLayout_2.addWidget(self.constant_bc_adv)
        self.verticalLayout_5.addLayout(self.horizontalLayout_2)
        self.widget = MatplotlibWidget(self.centralwidget)
        self.widget.setGeometry(QtCore.QRect(200, 20, 501, 371))
        self.widget.setObjectName("widget")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 749, 20))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Ejemplo n.º 9
0
 def createWidget(self, parent):
     return MatplotlibWidget(parent)
Ejemplo n.º 10
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(749, 585)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.RUNButton = QtGui.QPushButton(self.centralwidget)
        self.RUNButton.setGeometry(QtCore.QRect(500, 470, 74, 20))
        self.RUNButton.setObjectName("RUNButton")
        self.verticalLayoutWidget = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 20, 118, 81))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.splitter_2 = QtGui.QSplitter(self.verticalLayoutWidget)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName("splitter_2")
        self.label_2 = QtGui.QLabel(self.splitter_2)
        self.label_2.setObjectName("label_2")
        self.dim_x = QtGui.QLineEdit(self.splitter_2)
        self.dim_x.setObjectName("dim_x")
        self.verticalLayout.addWidget(self.splitter_2)
        self.splitter = QtGui.QSplitter(self.verticalLayoutWidget)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.label = QtGui.QLabel(self.splitter)
        self.label.setObjectName("label")
        self.dim_y = QtGui.QLineEdit(self.splitter)
        self.dim_y.setObjectName("dim_y")
        self.verticalLayout.addWidget(self.splitter)
        self.splitter_3 = QtGui.QSplitter(self.verticalLayoutWidget)
        self.splitter_3.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_3.setObjectName("splitter_3")
        self.splitter_4 = QtGui.QSplitter(self.splitter_3)
        self.splitter_4.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_4.setObjectName("splitter_4")
        self.label_3 = QtGui.QLabel(self.splitter_4)
        self.label_3.setObjectName("label_3")
        self.spacing = QtGui.QLineEdit(self.splitter_4)
        self.spacing.setObjectName("spacing")
        self.verticalLayout.addWidget(self.splitter_3)
        self.verticalLayoutWidget_2 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(10, 200, 121, 147))
        self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_5 = QtGui.QLabel(self.verticalLayoutWidget_2)
        self.label_5.setObjectName("label_5")
        self.verticalLayout_2.addWidget(self.label_5)
        self.splitter_6 = QtGui.QSplitter(self.verticalLayoutWidget_2)
        self.splitter_6.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_6.setObjectName("splitter_6")
        self.label_6 = QtGui.QLabel(self.splitter_6)
        self.label_6.setObjectName("label_6")
        self.head_up = QtGui.QLineEdit(self.splitter_6)
        self.head_up.setObjectName("head_up")
        self.verticalLayout_2.addWidget(self.splitter_6)
        self.splitter_7 = QtGui.QSplitter(self.verticalLayoutWidget_2)
        self.splitter_7.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_7.setObjectName("splitter_7")
        self.label_7 = QtGui.QLabel(self.splitter_7)
        self.label_7.setObjectName("label_7")
        self.head_down = QtGui.QLineEdit(self.splitter_7)
        self.head_down.setObjectName("head_down")
        self.verticalLayout_2.addWidget(self.splitter_7)
        self.splitter_9 = QtGui.QSplitter(self.verticalLayoutWidget_2)
        self.splitter_9.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_9.setObjectName("splitter_9")
        self.label_9 = QtGui.QLabel(self.splitter_9)
        self.label_9.setObjectName("label_9")
        self.k = QtGui.QLineEdit(self.splitter_9)
        self.k.setObjectName("k")
        self.verticalLayout_2.addWidget(self.splitter_9)
        self.splitter_8 = QtGui.QSplitter(self.verticalLayoutWidget_2)
        self.splitter_8.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_8.setObjectName("splitter_8")
        self.label_8 = QtGui.QLabel(self.splitter_8)
        self.label_8.setObjectName("label_8")
        self.n = QtGui.QLineEdit(self.splitter_8)
        self.n.setObjectName("n")
        self.verticalLayout_2.addWidget(self.splitter_8)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.line_bc = QtGui.QRadioButton(self.verticalLayoutWidget_2)
        self.line_bc.setEnabled(True)
        self.line_bc.setObjectName("line_bc")
        self.horizontalLayout.addWidget(self.line_bc)
        self.constant_bc = QtGui.QRadioButton(self.verticalLayoutWidget_2)
        self.constant_bc.setObjectName("constant_bc")
        self.horizontalLayout.addWidget(self.constant_bc)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.verticalLayoutWidget_3 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(10, 100, 136, 94))
        self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3")
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalLayoutWidget_3)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.label_13 = QtGui.QLabel(self.verticalLayoutWidget_3)
        self.label_13.setObjectName("label_13")
        self.verticalLayout_3.addWidget(self.label_13)
        self.splitter_10 = QtGui.QSplitter(self.verticalLayoutWidget_3)
        self.splitter_10.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_10.setObjectName("splitter_10")
        self.label_10 = QtGui.QLabel(self.splitter_10)
        self.label_10.setObjectName("label_10")
        self.max_iter_flow = QtGui.QLineEdit(self.splitter_10)
        self.max_iter_flow.setObjectName("max_iter_flow")
        self.verticalLayout_3.addWidget(self.splitter_10)
        self.splitter_5 = QtGui.QSplitter(self.verticalLayoutWidget_3)
        self.splitter_5.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_5.setObjectName("splitter_5")
        self.label_4 = QtGui.QLabel(self.splitter_5)
        self.label_4.setObjectName("label_4")
        self.w_SOR = QtGui.QLineEdit(self.splitter_5)
        self.w_SOR.setObjectName("w_SOR")
        self.verticalLayout_3.addWidget(self.splitter_5)
        self.splitter_11 = QtGui.QSplitter(self.verticalLayoutWidget_3)
        self.splitter_11.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_11.setObjectName("splitter_11")
        self.label_12 = QtGui.QLabel(self.splitter_11)
        self.label_12.setObjectName("label_12")
        self.convergence_limit = QtGui.QLineEdit(self.splitter_11)
        self.convergence_limit.setObjectName("convergence_limit")
        self.verticalLayout_3.addWidget(self.splitter_11)
        self.verticalLayoutWidget_4 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_4.setGeometry(QtCore.QRect(10, 350, 123, 179))
        self.verticalLayoutWidget_4.setObjectName("verticalLayoutWidget_4")
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.verticalLayoutWidget_4)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.do_random_walk = QtGui.QCheckBox(self.verticalLayoutWidget_4)
        self.do_random_walk.setObjectName("do_random_walk")
        self.verticalLayout_4.addWidget(self.do_random_walk)
        self.splitter_12 = QtGui.QSplitter(self.verticalLayoutWidget_4)
        self.splitter_12.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_12.setObjectName("splitter_12")
        self.label_14 = QtGui.QLabel(self.splitter_12)
        self.label_14.setObjectName("label_14")
        self.deltaT_rw = QtGui.QLineEdit(self.splitter_12)
        self.deltaT_rw.setObjectName("deltaT_rw")
        self.verticalLayout_4.addWidget(self.splitter_12)
        self.splitter_13 = QtGui.QSplitter(self.verticalLayoutWidget_4)
        self.splitter_13.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_13.setObjectName("splitter_13")
        self.label_15 = QtGui.QLabel(self.splitter_13)
        self.label_15.setObjectName("label_15")
        self.max_iter_rw = QtGui.QLineEdit(self.splitter_13)
        self.max_iter_rw.setObjectName("max_iter_rw")
        self.verticalLayout_4.addWidget(self.splitter_13)
        self.splitter_15 = QtGui.QSplitter(self.verticalLayoutWidget_4)
        self.splitter_15.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_15.setObjectName("splitter_15")
        self.label_17 = QtGui.QLabel(self.splitter_15)
        self.label_17.setObjectName("label_17")
        self.DL = QtGui.QLineEdit(self.splitter_15)
        self.DL.setObjectName("DL")
        self.verticalLayout_4.addWidget(self.splitter_15)
        self.splitter_16 = QtGui.QSplitter(self.verticalLayoutWidget_4)
        self.splitter_16.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_16.setObjectName("splitter_16")
        self.label_18 = QtGui.QLabel(self.splitter_16)
        self.label_18.setObjectName("label_18")
        self.DT = QtGui.QLineEdit(self.splitter_16)
        self.DT.setObjectName("DT")
        self.verticalLayout_4.addWidget(self.splitter_16)
        self.splitter_14 = QtGui.QSplitter(self.verticalLayoutWidget_4)
        self.splitter_14.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_14.setObjectName("splitter_14")
        self.label_16 = QtGui.QLabel(self.splitter_14)
        self.label_16.setObjectName("label_16")
        self.particle_num = QtGui.QLineEdit(self.splitter_14)
        self.particle_num.setObjectName("particle_num")
        self.verticalLayout_4.addWidget(self.splitter_14)
        self.splitter_18 = QtGui.QSplitter(self.verticalLayoutWidget_4)
        self.splitter_18.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_18.setObjectName("splitter_18")
        self.splitter_17 = QtGui.QSplitter(self.splitter_18)
        self.splitter_17.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_17.setObjectName("splitter_17")
        self.label_19 = QtGui.QLabel(self.splitter_17)
        self.label_19.setObjectName("label_19")
        self.x_rw = QtGui.QLineEdit(self.splitter_17)
        self.x_rw.setObjectName("x_rw")
        self.y_rw = QtGui.QLineEdit(self.splitter_18)
        self.y_rw.setObjectName("y_rw")
        self.verticalLayout_4.addWidget(self.splitter_18)
        self.verticalLayoutWidget_5 = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget_5.setGeometry(QtCore.QRect(150, 400, 160, 128))
        self.verticalLayoutWidget_5.setObjectName("verticalLayoutWidget_5")
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.verticalLayoutWidget_5)
        self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.checkBox_2 = QtGui.QCheckBox(self.verticalLayoutWidget_5)
        self.checkBox_2.setObjectName("checkBox_2")
        self.verticalLayout_5.addWidget(self.checkBox_2)
        self.splitter_19 = QtGui.QSplitter(self.verticalLayoutWidget_5)
        self.splitter_19.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_19.setObjectName("splitter_19")
        self.label_20 = QtGui.QLabel(self.splitter_19)
        self.label_20.setObjectName("label_20")
        self.background_C = QtGui.QLineEdit(self.splitter_19)
        self.background_C.setObjectName("background_C")
        self.verticalLayout_5.addWidget(self.splitter_19)
        self.splitter_21 = QtGui.QSplitter(self.verticalLayoutWidget_5)
        self.splitter_21.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_21.setObjectName("splitter_21")
        self.label_22 = QtGui.QLabel(self.splitter_21)
        self.label_22.setObjectName("label_22")
        self.initial_C = QtGui.QLineEdit(self.splitter_21)
        self.initial_C.setObjectName("initial_C")
        self.verticalLayout_5.addWidget(self.splitter_21)
        self.splitter_20 = QtGui.QSplitter(self.verticalLayoutWidget_5)
        self.splitter_20.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_20.setObjectName("splitter_20")
        self.label_21 = QtGui.QLabel(self.splitter_20)
        self.label_21.setObjectName("label_21")
        self.max_iter_adv = QtGui.QLineEdit(self.splitter_20)
        self.max_iter_adv.setObjectName("max_iter_adv")
        self.verticalLayout_5.addWidget(self.splitter_20)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.line_bc_adv = QtGui.QRadioButton(self.verticalLayoutWidget_5)
        self.line_bc_adv.setEnabled(True)
        self.line_bc_adv.setObjectName("line_bc_adv")
        self.horizontalLayout_2.addWidget(self.line_bc_adv)
        self.constant_bc_adv = QtGui.QRadioButton(self.verticalLayoutWidget_5)
        self.constant_bc_adv.setObjectName("constant_bc_adv")
        self.horizontalLayout_2.addWidget(self.constant_bc_adv)
        self.verticalLayout_5.addLayout(self.horizontalLayout_2)
        self.widget = MatplotlibWidget(self.centralwidget)
        self.widget.setGeometry(QtCore.QRect(200, 20, 501, 371))
        self.widget.setObjectName("widget")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 749, 20))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)