コード例 #1
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(358, 751)
        self.gridLayout_7 = QtGui.QGridLayout(Form)
        self.gridLayout_7.setMargin(1)
        self.gridLayout_7.setSpacing(3)
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.createSummaryBtn = QtGui.QPushButton(Form)
        self.createSummaryBtn.setObjectName(_fromUtf8("createSummaryBtn"))
        self.gridLayout_7.addWidget(self.createSummaryBtn, 5, 0, 1, 1)
        self.traceDisplayGroup = QtGui.QGroupBox(Form)
        self.traceDisplayGroup.setObjectName(_fromUtf8("traceDisplayGroup"))
        self.gridLayout_3 = QtGui.QGridLayout(self.traceDisplayGroup)
        self.gridLayout_3.setMargin(3)
        self.gridLayout_3.setSpacing(1)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.averageCheck = QtGui.QCheckBox(self.traceDisplayGroup)
        self.averageCheck.setObjectName(_fromUtf8("averageCheck"))
        self.gridLayout_3.addWidget(self.averageCheck, 0, 0, 1, 2)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setSpacing(2)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.excludeAPsCheck = QtGui.QGroupBox(self.traceDisplayGroup)
        self.excludeAPsCheck.setCheckable(True)
        self.excludeAPsCheck.setObjectName(_fromUtf8("excludeAPsCheck"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.excludeAPsCheck)
        self.horizontalLayout.setMargin(1)
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.label_8 = QtGui.QLabel(self.excludeAPsCheck)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.horizontalLayout.addWidget(self.label_8)
        self.startExcludeAPsSpin = SpinBox(self.excludeAPsCheck)
        self.startExcludeAPsSpin.setObjectName(_fromUtf8("startExcludeAPsSpin"))
        self.horizontalLayout.addWidget(self.startExcludeAPsSpin)
        self.label_9 = QtGui.QLabel(self.excludeAPsCheck)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.horizontalLayout.addWidget(self.label_9)
        self.endExcludeAPsSpin = SpinBox(self.excludeAPsCheck)
        self.endExcludeAPsSpin.setProperty("value", 0.25)
        self.endExcludeAPsSpin.setObjectName(_fromUtf8("endExcludeAPsSpin"))
        self.horizontalLayout.addWidget(self.endExcludeAPsSpin)
        self.verticalLayout.addWidget(self.excludeAPsCheck)
        self.averageAnalysisCheck = QtGui.QCheckBox(self.traceDisplayGroup)
        self.averageAnalysisCheck.setMinimumSize(QtCore.QSize(0, 20))
        self.averageAnalysisCheck.setChecked(True)
        self.averageAnalysisCheck.setObjectName(_fromUtf8("averageAnalysisCheck"))
        self.verticalLayout.addWidget(self.averageAnalysisCheck)
        self.displayTracesCheck = QtGui.QCheckBox(self.traceDisplayGroup)
        self.displayTracesCheck.setMinimumSize(QtCore.QSize(0, 20))
        self.displayTracesCheck.setObjectName(_fromUtf8("displayTracesCheck"))
        self.verticalLayout.addWidget(self.displayTracesCheck)
        self.gridLayout_3.addLayout(self.verticalLayout, 3, 1, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_3.addItem(spacerItem1, 4, 0, 1, 3)
        self.gridLayout_8 = QtGui.QGridLayout()
        self.gridLayout_8.setHorizontalSpacing(0)
        self.gridLayout_8.setVerticalSpacing(2)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.averageTimeRadio = QtGui.QRadioButton(self.traceDisplayGroup)
        self.averageTimeRadio.setChecked(True)
        self.averageTimeRadio.setObjectName(_fromUtf8("averageTimeRadio"))
        self.gridLayout_8.addWidget(self.averageTimeRadio, 0, 0, 1, 1)
        self.averageTimeSpin = SpinBox(self.traceDisplayGroup)
        self.averageTimeSpin.setObjectName(_fromUtf8("averageTimeSpin"))
        self.gridLayout_8.addWidget(self.averageTimeSpin, 0, 1, 1, 1)
        self.averageNumberRadio = QtGui.QRadioButton(self.traceDisplayGroup)
        self.averageNumberRadio.setObjectName(_fromUtf8("averageNumberRadio"))
        self.gridLayout_8.addWidget(self.averageNumberRadio, 1, 0, 1, 1)
        self.averageNumberSpin = SpinBox(self.traceDisplayGroup)
        self.averageNumberSpin.setDecimals(0)
        self.averageNumberSpin.setMaximum(1000.0)
        self.averageNumberSpin.setProperty("value", 5.0)
        self.averageNumberSpin.setObjectName(_fromUtf8("averageNumberSpin"))
        self.gridLayout_8.addWidget(self.averageNumberSpin, 1, 1, 1, 1)
        self.gridLayout_8.setColumnStretch(1, 3)
        self.gridLayout_3.addLayout(self.gridLayout_8, 1, 1, 1, 1)
        self.gridLayout_7.addWidget(self.traceDisplayGroup, 0, 0, 1, 1)
        self.createBlindSummaryBtn = QtGui.QPushButton(Form)
        self.createBlindSummaryBtn.setObjectName(_fromUtf8("createBlindSummaryBtn"))
        self.gridLayout_7.addWidget(self.createBlindSummaryBtn, 6, 0, 1, 1)
        spacerItem2 = QtGui.QSpacerItem(337, 47, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_7.addItem(spacerItem2, 4, 0, 1, 1)
        self.storeToDBBtn = QtGui.QPushButton(Form)
        self.storeToDBBtn.setObjectName(_fromUtf8("storeToDBBtn"))
        self.gridLayout_7.addWidget(self.storeToDBBtn, 3, 0, 1, 1)
        self.analysisGroup = QtGui.QGroupBox(Form)
        self.analysisGroup.setObjectName(_fromUtf8("analysisGroup"))
        self.gridLayout_4 = QtGui.QGridLayout(self.analysisGroup)
        self.gridLayout_4.setMargin(1)
        self.gridLayout_4.setSpacing(1)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.baselineCheck = QtGui.QCheckBox(self.analysisGroup)
        self.baselineCheck.setChecked(True)
        self.baselineCheck.setObjectName(_fromUtf8("baselineCheck"))
        self.gridLayout_4.addWidget(self.baselineCheck, 0, 0, 1, 2)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setSpacing(1)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(self.analysisGroup)
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.baselineStartSpin = SpinBox(self.analysisGroup)
        self.baselineStartSpin.setObjectName(_fromUtf8("baselineStartSpin"))
        self.gridLayout.addWidget(self.baselineStartSpin, 0, 1, 1, 1)
        self.label_2 = QtGui.QLabel(self.analysisGroup)
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.baselineEndSpin = SpinBox(self.analysisGroup)
        self.baselineEndSpin.setObjectName(_fromUtf8("baselineEndSpin"))
        self.gridLayout.addWidget(self.baselineEndSpin, 1, 1, 1, 1)
        self.gridLayout.setColumnStretch(0, 1)
        self.gridLayout.setColumnStretch(1, 2)
        self.gridLayout_4.addLayout(self.gridLayout, 1, 0, 1, 3)
        self.pspCheck = QtGui.QCheckBox(self.analysisGroup)
        self.pspCheck.setChecked(True)
        self.pspCheck.setObjectName(_fromUtf8("pspCheck"))
        self.gridLayout_4.addWidget(self.pspCheck, 2, 0, 1, 2)
        self.gridLayout_5 = QtGui.QGridLayout()
        self.gridLayout_5.setSpacing(1)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.label_3 = QtGui.QLabel(self.analysisGroup)
        self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_5.addWidget(self.label_3, 0, 0, 1, 1)
        self.pspStartSpin = SpinBox(self.analysisGroup)
        self.pspStartSpin.setObjectName(_fromUtf8("pspStartSpin"))
        self.gridLayout_5.addWidget(self.pspStartSpin, 0, 1, 1, 2)
        self.label_4 = QtGui.QLabel(self.analysisGroup)
        self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_5.addWidget(self.label_4, 1, 0, 1, 1)
        self.pspEndSpin = SpinBox(self.analysisGroup)
        self.pspEndSpin.setObjectName(_fromUtf8("pspEndSpin"))
        self.gridLayout_5.addWidget(self.pspEndSpin, 1, 1, 1, 2)
        self.label_7 = QtGui.QLabel(self.analysisGroup)
        self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout_5.addWidget(self.label_7, 2, 0, 1, 1)
        self.measureModeCombo = ComboBox(self.analysisGroup)
        self.measureModeCombo.setObjectName(_fromUtf8("measureModeCombo"))
        self.gridLayout_5.addWidget(self.measureModeCombo, 2, 1, 1, 2)
        self.gridLayout_4.addLayout(self.gridLayout_5, 3, 0, 1, 3)
        self.healthCheck = QtGui.QCheckBox(self.analysisGroup)
        self.healthCheck.setChecked(True)
        self.healthCheck.setObjectName(_fromUtf8("healthCheck"))
        self.gridLayout_4.addWidget(self.healthCheck, 4, 0, 1, 2)
        self.gridLayout_6 = QtGui.QGridLayout()
        self.gridLayout_6.setSpacing(1)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.healthStartSpin = SpinBox(self.analysisGroup)
        self.healthStartSpin.setObjectName(_fromUtf8("healthStartSpin"))
        self.gridLayout_6.addWidget(self.healthStartSpin, 0, 1, 1, 1)
        self.label_6 = QtGui.QLabel(self.analysisGroup)
        self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout_6.addWidget(self.label_6, 1, 0, 1, 1)
        self.healthEndSpin = SpinBox(self.analysisGroup)
        self.healthEndSpin.setObjectName(_fromUtf8("healthEndSpin"))
        self.gridLayout_6.addWidget(self.healthEndSpin, 1, 1, 1, 1)
        self.label_5 = QtGui.QLabel(self.analysisGroup)
        self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout_6.addWidget(self.label_5, 0, 0, 1, 1)
        self.gridLayout_6.setColumnStretch(0, 1)
        self.gridLayout_6.setColumnStretch(1, 2)
        self.gridLayout_4.addLayout(self.gridLayout_6, 5, 0, 1, 3)
        spacerItem3 = QtGui.QSpacerItem(327, 9, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_4.addItem(spacerItem3, 6, 0, 1, 2)
        self.label_10 = QtGui.QLabel(self.analysisGroup)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.gridLayout_4.addWidget(self.label_10, 7, 0, 1, 1)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setSpacing(1)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.plasticityAdjustChk = QtGui.QCheckBox(self.analysisGroup)
        self.plasticityAdjustChk.setObjectName(_fromUtf8("plasticityAdjustChk"))
        self.gridLayout_2.addWidget(self.plasticityAdjustChk, 0, 0, 1, 1)
        self.defaultRgnBtn = QtGui.QPushButton(self.analysisGroup)
        self.defaultRgnBtn.setObjectName(_fromUtf8("defaultRgnBtn"))
        self.gridLayout_2.addWidget(self.defaultRgnBtn, 0, 1, 1, 1)
        self.label_11 = QtGui.QLabel(self.analysisGroup)
        self.label_11.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.gridLayout_2.addWidget(self.label_11, 1, 0, 1, 1)
        self.plasticityRgnStartSpin = SpinBox(self.analysisGroup)
        self.plasticityRgnStartSpin.setDecimals(1)
        self.plasticityRgnStartSpin.setProperty("value", 27.0)
        self.plasticityRgnStartSpin.setObjectName(_fromUtf8("plasticityRgnStartSpin"))
        self.gridLayout_2.addWidget(self.plasticityRgnStartSpin, 1, 1, 1, 1)
        self.label_12 = QtGui.QLabel(self.analysisGroup)
        self.label_12.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.gridLayout_2.addWidget(self.label_12, 2, 0, 1, 1)
        self.plasticityRgnEndSpin = SpinBox(self.analysisGroup)
        self.plasticityRgnEndSpin.setDecimals(1)
        self.plasticityRgnEndSpin.setProperty("value", 47.0)
        self.plasticityRgnEndSpin.setObjectName(_fromUtf8("plasticityRgnEndSpin"))
        self.gridLayout_2.addWidget(self.plasticityRgnEndSpin, 2, 1, 1, 1)
        self.gridLayout_2.setColumnStretch(0, 1)
        self.gridLayout_2.setColumnStretch(1, 2)
        self.gridLayout_4.addLayout(self.gridLayout_2, 8, 0, 2, 3)
        self.analyzeBtn = QtGui.QPushButton(self.analysisGroup)
        self.analyzeBtn.setObjectName(_fromUtf8("analyzeBtn"))
        self.gridLayout_4.addWidget(self.analyzeBtn, 10, 0, 1, 3)
        self.gridLayout_7.addWidget(self.analysisGroup, 1, 0, 1, 1)
        self.groupBox = QtGui.QGroupBox(Form)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout_9 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_9.setMargin(0)
        self.gridLayout_9.setSpacing(1)
        self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
        self.label_13 = QtGui.QLabel(self.groupBox)
        self.label_13.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.gridLayout_9.addWidget(self.label_13, 0, 0, 1, 1)
        self.label_14 = QtGui.QLabel(self.groupBox)
        self.label_14.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.gridLayout_9.addWidget(self.label_14, 1, 0, 1, 1)
        self.pspStartTimeSpin = SpinBox(self.groupBox)
        self.pspStartTimeSpin.setObjectName(_fromUtf8("pspStartTimeSpin"))
        self.gridLayout_9.addWidget(self.pspStartTimeSpin, 0, 1, 1, 1)
        self.spikePeakSpin = SpinBox(self.groupBox)
        self.spikePeakSpin.setObjectName(_fromUtf8("spikePeakSpin"))
        self.gridLayout_9.addWidget(self.spikePeakSpin, 1, 1, 1, 1)
        self.gridLayout_7.addWidget(self.groupBox, 2, 0, 1, 1)

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

    def retranslateUi(self, Form):
        Form.setWindowTitle(_translate("Form", "Form", None))
        self.createSummaryBtn.setText(_translate("Form", "Create Summary Sheet", None))
        self.traceDisplayGroup.setTitle(_translate("Form", "Trace Display:", None))
        self.averageCheck.setText(_translate("Form", "Average traces based on:", None))
        self.excludeAPsCheck.setTitle(_translate("Form", "Exclude traces with action potentials", None))
        self.label_8.setText(_translate("Form", "between", None))
        self.label_9.setText(_translate("Form", "and", None))
        self.averageAnalysisCheck.setText(_translate("Form", "Use averaged traces for analysis", None))
        self.displayTracesCheck.setText(_translate("Form", "Display original traces (slow)", None))
        self.averageTimeRadio.setText(_translate("Form", "Time:", None))
        self.averageNumberRadio.setText(_translate("Form", "Number:", None))
        self.createBlindSummaryBtn.setText(_translate("Form", "Create Blind Summary Sheet", None))
        self.storeToDBBtn.setText(_translate("Form", "Store to Database", None))
        self.analysisGroup.setTitle(_translate("Form", "PSP Analysis", None))
        self.baselineCheck.setText(_translate("Form", "Baseline Region (green)", None))
        self.label.setText(_translate("Form", "Start:", None))
        self.label_2.setText(_translate("Form", "End:", None))
        self.pspCheck.setText(_translate("Form", "Synaptic Event Region (red)", None))
        self.label_3.setText(_translate("Form", "Start:", None))
        self.label_4.setText(_translate("Form", "End:", None))
        self.label_7.setText(_translate("Form", "Measure:", None))
        self.healthCheck.setText(_translate("Form", "Cell Health Region (blue)", None))
        self.label_6.setText(_translate("Form", "End:", None))
        self.label_5.setText(_translate("Form", "Start:", None))
        self.label_10.setText(_translate("Form", "Plasticity Region:", None))
        self.plasticityAdjustChk.setText(_translate("Form", "Allow adjustment", None))
        self.defaultRgnBtn.setText(_translate("Form", "Default", None))
        self.label_11.setText(_translate("Form", "Start:", None))
        self.plasticityRgnStartSpin.setSuffix(_translate("Form", " minutes", None))
        self.label_12.setText(_translate("Form", "End:", None))
        self.plasticityRgnEndSpin.setSuffix(_translate("Form", " minutes", None))
        self.analyzeBtn.setText(_translate("Form", "Analyze!", None))
        self.groupBox.setTitle(_translate("Form", "Conditioning Analysis", None))
        self.label_13.setText(_translate("Form", "PSP Start time:", None))
        self.label_14.setText(_translate("Form", "First Spike peak:", None))
コード例 #2
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(273, 234)
        self.gridLayout = QtWidgets.QGridLayout(Form)
        self.gridLayout.setContentsMargins(3, 3, 3, 3)
        self.gridLayout.setSpacing(3)
        self.gridLayout.setObjectName("gridLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setSpacing(1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtWidgets.QLabel(Form)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.spontSpin = SpinBox(Form)
        self.spontSpin.setSuffix("")
        self.spontSpin.setObjectName("spontSpin")
        self.horizontalLayout.addWidget(self.spontSpin)
        self.gridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 2)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setSpacing(1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_2 = QtWidgets.QLabel(Form)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_2.addWidget(self.label_2)
        self.deltaTSpin = SpinBox(Form)
        self.deltaTSpin.setObjectName("deltaTSpin")
        self.horizontalLayout_2.addWidget(self.deltaTSpin)
        self.gridLayout.addLayout(self.horizontalLayout_2, 2, 0, 1, 2)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setSpacing(1)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_3 = QtWidgets.QLabel(Form)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_3.addWidget(self.label_3)
        self.radiusSpin = SpinBox(Form)
        self.radiusSpin.setObjectName("radiusSpin")
        self.horizontalLayout_3.addWidget(self.radiusSpin)
        self.gridLayout.addLayout(self.horizontalLayout_3, 3, 0, 1, 2)
        self.disableChk = QtWidgets.QCheckBox(Form)
        self.disableChk.setObjectName("disableChk")
        self.gridLayout.addWidget(self.disableChk, 6, 0, 1, 1)
        self.processBtn = QtWidgets.QPushButton(Form)
        self.processBtn.setObjectName("processBtn")
        self.gridLayout.addWidget(self.processBtn, 6, 1, 1, 1)
        self.groupBox = QtWidgets.QGroupBox(Form)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_2.setContentsMargins(3, 3, 3, 3)
        self.gridLayout_2.setSpacing(3)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.probabilityRadio = QtWidgets.QRadioButton(self.groupBox)
        self.probabilityRadio.setChecked(True)
        self.probabilityRadio.setObjectName("probabilityRadio")
        self.gridLayout_2.addWidget(self.probabilityRadio, 0, 0, 1, 2)
        self.thresholdSpin = SpinBox(self.groupBox)
        self.thresholdSpin.setEnabled(True)
        self.thresholdSpin.setObjectName("thresholdSpin")
        self.gridLayout_2.addWidget(self.thresholdSpin, 2, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.groupBox)
        self.label_4.setAlignment(Qt.Qt.AlignRight | Qt.Qt.AlignTrailing
                                  | Qt.Qt.AlignVCenter)
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 2, 0, 1, 1)
        self.thresholdRadio = QtWidgets.QRadioButton(self.groupBox)
        self.thresholdRadio.setObjectName("thresholdRadio")
        self.gridLayout_2.addWidget(self.thresholdRadio, 1, 0, 1, 2)
        self.gridLayout.addWidget(self.groupBox, 5, 0, 1, 2)
        self.eventCombo = ComboBox(Form)
        self.eventCombo.setObjectName("eventCombo")
        self.gridLayout.addWidget(self.eventCombo, 0, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(Form)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 0, 0, 1, 1)

        self.retranslateUi(Form)
        Qt.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = Qt.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.label.setText(_translate("Form", "Spontaneous Event Rate:"))
        self.label_2.setText(_translate("Form", "Post-stimulus time window:"))
        self.label_3.setText(_translate("Form", "Correlation Radius:"))
        self.disableChk.setText(_translate("Form", "Disable"))
        self.processBtn.setText(_translate("Form", "re-Process"))
        self.groupBox.setTitle(_translate("Form", "Output data:"))
        self.probabilityRadio.setText(
            _translate("Form", "Probability values (float)"))
        self.label_4.setText(_translate("Form", "Threshold:"))
        self.thresholdRadio.setText(
            _translate("Form", "Spots that cross threshold (boolean)"))
        self.label_5.setText(_translate("Form", "Event Parameter to use:"))
コード例 #3
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(273, 234)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setMargin(3)
        self.gridLayout.setSpacing(3)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSpacing(1)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label = QtGui.QLabel(Form)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.spontSpin = SpinBox(Form)
        self.spontSpin.setSuffix(_fromUtf8(""))
        self.spontSpin.setObjectName(_fromUtf8("spontSpin"))
        self.horizontalLayout.addWidget(self.spontSpin)
        self.gridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 2)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setSpacing(1)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_2.addWidget(self.label_2)
        self.deltaTSpin = SpinBox(Form)
        self.deltaTSpin.setObjectName(_fromUtf8("deltaTSpin"))
        self.horizontalLayout_2.addWidget(self.deltaTSpin)
        self.gridLayout.addLayout(self.horizontalLayout_2, 2, 0, 1, 2)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setSpacing(1)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_3 = QtGui.QLabel(Form)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_3.addWidget(self.label_3)
        self.radiusSpin = SpinBox(Form)
        self.radiusSpin.setObjectName(_fromUtf8("radiusSpin"))
        self.horizontalLayout_3.addWidget(self.radiusSpin)
        self.gridLayout.addLayout(self.horizontalLayout_3, 3, 0, 1, 2)
        self.disableChk = QtGui.QCheckBox(Form)
        self.disableChk.setObjectName(_fromUtf8("disableChk"))
        self.gridLayout.addWidget(self.disableChk, 6, 0, 1, 1)
        self.processBtn = QtGui.QPushButton(Form)
        self.processBtn.setObjectName(_fromUtf8("processBtn"))
        self.gridLayout.addWidget(self.processBtn, 6, 1, 1, 1)
        self.groupBox = QtGui.QGroupBox(Form)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_2.setMargin(3)
        self.gridLayout_2.setSpacing(3)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.probabilityRadio = QtGui.QRadioButton(self.groupBox)
        self.probabilityRadio.setChecked(True)
        self.probabilityRadio.setObjectName(_fromUtf8("probabilityRadio"))
        self.gridLayout_2.addWidget(self.probabilityRadio, 0, 0, 1, 2)
        self.thresholdSpin = SpinBox(self.groupBox)
        self.thresholdSpin.setEnabled(True)
        self.thresholdSpin.setObjectName(_fromUtf8("thresholdSpin"))
        self.gridLayout_2.addWidget(self.thresholdSpin, 2, 1, 1, 1)
        self.label_4 = QtGui.QLabel(self.groupBox)
        self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_2.addWidget(self.label_4, 2, 0, 1, 1)
        self.thresholdRadio = QtGui.QRadioButton(self.groupBox)
        self.thresholdRadio.setObjectName(_fromUtf8("thresholdRadio"))
        self.gridLayout_2.addWidget(self.thresholdRadio, 1, 0, 1, 2)
        self.gridLayout.addWidget(self.groupBox, 5, 0, 1, 2)
        self.eventCombo = ComboBox(Form)
        self.eventCombo.setObjectName(_fromUtf8("eventCombo"))
        self.gridLayout.addWidget(self.eventCombo, 0, 1, 1, 1)
        self.label_5 = QtGui.QLabel(Form)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout.addWidget(self.label_5, 0, 0, 1, 1)

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

    def retranslateUi(self, Form):
        Form.setWindowTitle(_translate("Form", "Form", None))
        self.label.setText(_translate("Form", "Spontaneous Event Rate:", None))
        self.label_2.setText(_translate("Form", "Post-stimulus time window:", None))
        self.label_3.setText(_translate("Form", "Correlation Radius:", None))
        self.disableChk.setText(_translate("Form", "Disable", None))
        self.processBtn.setText(_translate("Form", "re-Process", None))
        self.groupBox.setTitle(_translate("Form", "Output data:", None))
        self.probabilityRadio.setText(_translate("Form", "Probability values (float)", None))
        self.label_4.setText(_translate("Form", "Threshold:", None))
        self.thresholdRadio.setText(_translate("Form", "Spots that cross threshold (boolean)", None))
        self.label_5.setText(_translate("Form", "Event Parameter to use:", None))