本文整理汇总了Python中pyqtgraph.GraphicsLayoutWidget.setObjectName方法的典型用法代码示例。如果您正苦于以下问题:Python GraphicsLayoutWidget.setObjectName方法的具体用法?Python GraphicsLayoutWidget.setObjectName怎么用?Python GraphicsLayoutWidget.setObjectName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyqtgraph.GraphicsLayoutWidget
的用法示例。
在下文中一共展示了GraphicsLayoutWidget.setObjectName方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_plotdialog
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setObjectName [as 别名]
class Ui_plotdialog(object):
def setupUi(self, plotdialog):
plotdialog.setObjectName(_fromUtf8("plotdialog"))
plotdialog.resize(854, 610)
self.graphicsView = GraphicsLayoutWidget(plotdialog)
self.graphicsView.setGeometry(QtCore.QRect(30, 10, 811, 481))
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.hslider = QtGui.QSlider(plotdialog)
self.hslider.setGeometry(QtCore.QRect(20, 510, 431, 29))
self.hslider.setMaximum(100)
self.hslider.setOrientation(QtCore.Qt.Horizontal)
self.hslider.setTickPosition(QtGui.QSlider.TicksBothSides)
self.hslider.setObjectName(_fromUtf8("hslider"))
self.comboBox = QtGui.QComboBox(plotdialog)
self.comboBox.setGeometry(QtCore.QRect(30, 550, 141, 31))
self.comboBox.setObjectName(_fromUtf8("comboBox"))
self.showbtn = QtGui.QToolButton(plotdialog)
self.showbtn.setGeometry(QtCore.QRect(240, 550, 151, 31))
self.showbtn.setObjectName(_fromUtf8("showbtn"))
self.retranslateUi(plotdialog)
QtCore.QMetaObject.connectSlotsByName(plotdialog)
def retranslateUi(self, plotdialog):
plotdialog.setWindowTitle(QtGui.QApplication.translate("plotdialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8))
self.showbtn.setText(QtGui.QApplication.translate("plotdialog", "Show/Hide PF", None, QtGui.QApplication.UnicodeUTF8))
示例2: Ui_MainWindow
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(800, 600)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
self.pushButton.setGeometry(QtCore.QRect(670, 140, 75, 23))
self.pushButton.setObjectName("pushButton")
self.pyqtgraph1 = GraphicsLayoutWidget(self.centralwidget)
self.pyqtgraph1.setGeometry(QtCore.QRect(10, 10, 601, 201))
self.pyqtgraph1.setObjectName("pyqtgraph1")
self.pyqtgraph2 = GraphicsLayoutWidget(self.centralwidget)
self.pyqtgraph2.setGeometry(QtCore.QRect(10, 220, 381, 351))
self.pyqtgraph2.setObjectName("pyqtgraph2")
self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_2.setGeometry(QtCore.QRect(430, 380, 75, 23))
self.pushButton_2.setObjectName("pushButton_2")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 23))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.pushButton.setText(_translate("MainWindow", "水平绘图"))
self.pushButton_2.setText(_translate("MainWindow", "垂直绘图"))
示例3: Ui_Form
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setObjectName [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(648, 335)
self.horizontalLayout = QtGui.QHBoxLayout(Form)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.tabWidget = QtGui.QTabWidget(Form)
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.tab = QtGui.QWidget()
self.tab.setObjectName(_fromUtf8("tab"))
self.verticalLayout = QtGui.QVBoxLayout(self.tab)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.pg_layout = GraphicsLayoutWidget(self.tab)
self.pg_layout.setObjectName(_fromUtf8("pg_layout"))
self.verticalLayout.addWidget(self.pg_layout)
self.tabWidget.addTab(self.tab, _fromUtf8(""))
self.tab_2 = QtGui.QWidget()
self.tab_2.setObjectName(_fromUtf8("tab_2"))
self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
self.horizontalLayout.addWidget(self.tabWidget)
self.pg_layout2 = GraphicsLayoutWidget(Form)
self.pg_layout2.setObjectName(_fromUtf8("pg_layout2"))
self.horizontalLayout.addWidget(self.pg_layout2)
self.retranslateUi(Form)
self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "Form", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Form", "Tab 1", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("Form", "Tab 2", None))
示例4: Ui_ROI
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setObjectName [as 别名]
class Ui_ROI(object):
def setupUi(self, ROI):
ROI.setObjectName(_fromUtf8("ROI"))
ROI.resize(625, 300)
self.horizontalLayout = QtGui.QHBoxLayout(ROI)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.graphicsView = GraphicsLayoutWidget(ROI)
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.horizontalLayout.addWidget(self.graphicsView)
self.retranslateUi(ROI)
QtCore.QMetaObject.connectSlotsByName(ROI)
def retranslateUi(self, ROI):
ROI.setWindowTitle(_translate("ROI", "Form", None))
示例5: Ui_Form
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setObjectName [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(648, 335)
Form.setStyleSheet(_fromUtf8("#Form {\n"
" background-color: rgb(0,0,0)\n"
"}\n"
"\n"
"QLabel{\n"
" color: white\n"
"}"))
self.verticalLayout = QtGui.QVBoxLayout(Form)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.pg_layout = GraphicsLayoutWidget(Form)
self.pg_layout.setObjectName(_fromUtf8("pg_layout"))
self.horizontalLayout.addWidget(self.pg_layout)
self.verticalLayout.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.bench_btn = QtGui.QPushButton(Form)
self.bench_btn.setObjectName(_fromUtf8("bench_btn"))
self.horizontalLayout_2.addWidget(self.bench_btn)
self.pos_lbl = QtGui.QLabel(Form)
self.pos_lbl.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
self.pos_lbl.setObjectName(_fromUtf8("pos_lbl"))
self.horizontalLayout_2.addWidget(self.pos_lbl)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "PyQtGraphTest", None))
self.bench_btn.setText(_translate("Form", "PushButton", None))
self.pos_lbl.setText(_translate("Form", "HUAHSUGAHUGAS", None))
示例6: Ui_xrs_mask_widget
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setObjectName [as 别名]
class Ui_xrs_mask_widget(object):
def setupUi(self, xrs_mask_widget):
xrs_mask_widget.setObjectName(_fromUtf8("xrs_mask_widget"))
xrs_mask_widget.resize(712, 530)
xrs_mask_widget.setStyleSheet(_fromUtf8(""))
self.horizontalLayout_2 = QtGui.QHBoxLayout(xrs_mask_widget)
self.horizontalLayout_2.setSpacing(0)
self.horizontalLayout_2.setMargin(8)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.splitter = QtGui.QSplitter(xrs_mask_widget)
self.splitter.setOrientation(QtCore.Qt.Horizontal)
self.splitter.setObjectName(_fromUtf8("splitter"))
self.layoutWidget = QtGui.QWidget(self.splitter)
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget)
self.verticalLayout.setMargin(0)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.img_pg_layout = GraphicsLayoutWidget(self.layoutWidget)
self.img_pg_layout.setObjectName(_fromUtf8("img_pg_layout"))
self.verticalLayout.addWidget(self.img_pg_layout)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
spacerItem = QtGui.QSpacerItem(118, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.pos_lbl = QtGui.QLabel(self.layoutWidget)
self.pos_lbl.setObjectName(_fromUtf8("pos_lbl"))
self.horizontalLayout.addWidget(self.pos_lbl)
self.verticalLayout.addLayout(self.horizontalLayout)
self.widget = QtGui.QWidget(self.splitter)
self.widget.setMaximumSize(QtCore.QSize(200, 16777215))
self.widget.setObjectName(_fromUtf8("widget"))
self.verticalLayout_2 = QtGui.QVBoxLayout(self.widget)
self.verticalLayout_2.setSpacing(8)
self.verticalLayout_2.setMargin(0)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.horizontalLayout_3 = QtGui.QHBoxLayout()
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.mask_rb = QtGui.QRadioButton(self.widget)
self.mask_rb.setChecked(True)
self.mask_rb.setObjectName(_fromUtf8("mask_rb"))
self.horizontalLayout_3.addWidget(self.mask_rb)
self.unmask_rb = QtGui.QRadioButton(self.widget)
self.unmask_rb.setChecked(False)
self.unmask_rb.setObjectName(_fromUtf8("unmask_rb"))
self.horizontalLayout_3.addWidget(self.unmask_rb)
self.verticalLayout_2.addLayout(self.horizontalLayout_3)
self.line_2 = QtGui.QFrame(self.widget)
self.line_2.setFrameShadow(QtGui.QFrame.Raised)
self.line_2.setFrameShape(QtGui.QFrame.HLine)
self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
self.line_2.setObjectName(_fromUtf8("line_2"))
self.verticalLayout_2.addWidget(self.line_2)
self.gridLayout = QtGui.QGridLayout()
self.gridLayout.setSpacing(8)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.circle_btn = QtGui.QPushButton(self.widget)
self.circle_btn.setCheckable(True)
self.circle_btn.setChecked(False)
self.circle_btn.setFlat(True)
self.circle_btn.setObjectName(_fromUtf8("circle_btn"))
self.gridLayout.addWidget(self.circle_btn, 0, 0, 1, 1)
self.rectangle_btn = QtGui.QPushButton(self.widget)
self.rectangle_btn.setCheckable(True)
self.rectangle_btn.setFlat(True)
self.rectangle_btn.setObjectName(_fromUtf8("rectangle_btn"))
self.gridLayout.addWidget(self.rectangle_btn, 0, 1, 1, 1)
self.point_btn = QtGui.QPushButton(self.widget)
self.point_btn.setCheckable(True)
self.point_btn.setFlat(True)
self.point_btn.setObjectName(_fromUtf8("point_btn"))
self.gridLayout.addWidget(self.point_btn, 1, 0, 1, 1)
self.point_size_sb = QtGui.QSpinBox(self.widget)
self.point_size_sb.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.point_size_sb.setMaximum(4000)
self.point_size_sb.setProperty("value", 20)
self.point_size_sb.setObjectName(_fromUtf8("point_size_sb"))
self.gridLayout.addWidget(self.point_size_sb, 1, 1, 1, 1)
self.polygon_btn = QtGui.QPushButton(self.widget)
self.polygon_btn.setCheckable(True)
self.polygon_btn.setFlat(True)
self.polygon_btn.setObjectName(_fromUtf8("polygon_btn"))
self.gridLayout.addWidget(self.polygon_btn, 2, 0, 1, 2)
self.verticalLayout_2.addLayout(self.gridLayout)
self.line = QtGui.QFrame(self.widget)
self.line.setFrameShadow(QtGui.QFrame.Raised)
self.line.setFrameShape(QtGui.QFrame.HLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName(_fromUtf8("line"))
self.verticalLayout_2.addWidget(self.line)
self.gridLayout_2 = QtGui.QGridLayout()
self.gridLayout_2.setSpacing(8)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
self.below_thresh_txt = QtGui.QLineEdit(self.widget)
self.below_thresh_txt.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.below_thresh_txt.setObjectName(_fromUtf8("below_thresh_txt"))
self.gridLayout_2.addWidget(self.below_thresh_txt, 1, 1, 1, 1)
self.below_thresh_btn = QtGui.QPushButton(self.widget)
self.below_thresh_btn.setFlat(True)
self.below_thresh_btn.setObjectName(_fromUtf8("below_thresh_btn"))
self.gridLayout_2.addWidget(self.below_thresh_btn, 1, 0, 1, 1)
#.........这里部分代码省略.........
示例7: Ui_QSpectrumAnalyzerMainWindow
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setObjectName [as 别名]
class Ui_QSpectrumAnalyzerMainWindow(object):
def setupUi(self, QSpectrumAnalyzerMainWindow):
QSpectrumAnalyzerMainWindow.setObjectName(_fromUtf8("QSpectrumAnalyzerMainWindow"))
QSpectrumAnalyzerMainWindow.resize(1100, 731)
self.centralwidget = QtGui.QWidget(QSpectrumAnalyzerMainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.plotSplitter = QtGui.QSplitter(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.plotSplitter.sizePolicy().hasHeightForWidth())
self.plotSplitter.setSizePolicy(sizePolicy)
self.plotSplitter.setOrientation(QtCore.Qt.Vertical)
self.plotSplitter.setObjectName(_fromUtf8("plotSplitter"))
self.mainPlotLayout = GraphicsLayoutWidget(self.plotSplitter)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mainPlotLayout.sizePolicy().hasHeightForWidth())
self.mainPlotLayout.setSizePolicy(sizePolicy)
self.mainPlotLayout.setObjectName(_fromUtf8("mainPlotLayout"))
self.waterfallPlotLayout = GraphicsLayoutWidget(self.plotSplitter)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.waterfallPlotLayout.sizePolicy().hasHeightForWidth())
self.waterfallPlotLayout.setSizePolicy(sizePolicy)
self.waterfallPlotLayout.setObjectName(_fromUtf8("waterfallPlotLayout"))
self.horizontalLayout.addWidget(self.plotSplitter)
QSpectrumAnalyzerMainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(QSpectrumAnalyzerMainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1100, 30))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menu_File = QtGui.QMenu(self.menubar)
self.menu_File.setObjectName(_fromUtf8("menu_File"))
self.menu_Help = QtGui.QMenu(self.menubar)
self.menu_Help.setObjectName(_fromUtf8("menu_Help"))
QSpectrumAnalyzerMainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(QSpectrumAnalyzerMainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
QSpectrumAnalyzerMainWindow.setStatusBar(self.statusbar)
self.dockWidget = QtGui.QDockWidget(QSpectrumAnalyzerMainWindow)
self.dockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable)
self.dockWidget.setObjectName(_fromUtf8("dockWidget"))
self.dockWidgetContents = QtGui.QWidget()
self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
self.verticalLayout_3 = QtGui.QVBoxLayout(self.dockWidgetContents)
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.groupBox_2 = QtGui.QGroupBox(self.dockWidgetContents)
self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
self.gridLayout = QtGui.QGridLayout(self.groupBox_2)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.startButton = QtGui.QPushButton(self.groupBox_2)
self.startButton.setObjectName(_fromUtf8("startButton"))
self.gridLayout.addWidget(self.startButton, 0, 0, 1, 1)
self.stopButton = QtGui.QPushButton(self.groupBox_2)
self.stopButton.setObjectName(_fromUtf8("stopButton"))
self.gridLayout.addWidget(self.stopButton, 0, 1, 1, 1)
self.singleShotButton = QtGui.QPushButton(self.groupBox_2)
self.singleShotButton.setObjectName(_fromUtf8("singleShotButton"))
self.gridLayout.addWidget(self.singleShotButton, 1, 0, 1, 2)
self.verticalLayout_3.addWidget(self.groupBox_2)
self.groupBox = QtGui.QGroupBox(self.dockWidgetContents)
self.groupBox.setObjectName(_fromUtf8("groupBox"))
self.verticalLayout = QtGui.QVBoxLayout(self.groupBox)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.label_2 = QtGui.QLabel(self.groupBox)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.verticalLayout.addWidget(self.label_2)
self.startFreqSpinBox = QtGui.QDoubleSpinBox(self.groupBox)
self.startFreqSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.startFreqSpinBox.setDecimals(3)
self.startFreqSpinBox.setMinimum(24.0)
self.startFreqSpinBox.setMaximum(1766.0)
self.startFreqSpinBox.setProperty("value", 87.0)
self.startFreqSpinBox.setObjectName(_fromUtf8("startFreqSpinBox"))
self.verticalLayout.addWidget(self.startFreqSpinBox)
self.label_3 = QtGui.QLabel(self.groupBox)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.verticalLayout.addWidget(self.label_3)
self.stopFreqSpinBox = QtGui.QDoubleSpinBox(self.groupBox)
self.stopFreqSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.stopFreqSpinBox.setDecimals(3)
self.stopFreqSpinBox.setMinimum(24.0)
self.stopFreqSpinBox.setMaximum(1766.0)
self.stopFreqSpinBox.setProperty("value", 108.0)
self.stopFreqSpinBox.setObjectName(_fromUtf8("stopFreqSpinBox"))
self.verticalLayout.addWidget(self.stopFreqSpinBox)
self.label = QtGui.QLabel(self.groupBox)
self.label.setObjectName(_fromUtf8("label"))
self.verticalLayout.addWidget(self.label)
self.binSizeSpinBox = QtGui.QDoubleSpinBox(self.groupBox)
self.binSizeSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.binSizeSpinBox.setDecimals(3)
self.binSizeSpinBox.setMaximum(2800.0)
self.binSizeSpinBox.setProperty("value", 10.0)
self.binSizeSpinBox.setObjectName(_fromUtf8("binSizeSpinBox"))
self.verticalLayout.addWidget(self.binSizeSpinBox)
#.........这里部分代码省略.........
示例8: Ui_MainWindow
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(1112, 586)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.gridLayout_10 = QtGui.QGridLayout(self.centralwidget)
self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10"))
self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
self.groupBox_2.setTitle(_fromUtf8(""))
self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
self.gridLayout_5 = QtGui.QGridLayout(self.groupBox_2)
self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
self.push_Iniciar = QtGui.QPushButton(self.groupBox_2)
self.push_Iniciar.setObjectName(_fromUtf8("push_Iniciar"))
self.gridLayout_5.addWidget(self.push_Iniciar, 0, 0, 1, 1)
self.push_Finalizar = QtGui.QPushButton(self.groupBox_2)
self.push_Finalizar.setObjectName(_fromUtf8("push_Finalizar"))
self.gridLayout_5.addWidget(self.push_Finalizar, 1, 0, 1, 1)
self.push_Salir = QtGui.QPushButton(self.groupBox_2)
self.push_Salir.setObjectName(_fromUtf8("push_Salir"))
self.gridLayout_5.addWidget(self.push_Salir, 2, 0, 1, 1)
self.gridLayout_10.addWidget(self.groupBox_2, 0, 0, 1, 1)
self.gridLayout_14 = QtGui.QGridLayout()
self.gridLayout_14.setObjectName(_fromUtf8("gridLayout_14"))
spacerItem = QtGui.QSpacerItem(900, 1, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
self.gridLayout_14.addItem(spacerItem, 1, 0, 1, 1)
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.tab_2 = QtGui.QWidget()
self.tab_2.setObjectName(_fromUtf8("tab_2"))
self.gridLayoutWidget_6 = QtGui.QWidget(self.tab_2)
self.gridLayoutWidget_6.setGeometry(QtCore.QRect(280, 10, 591, 431))
self.gridLayoutWidget_6.setObjectName(_fromUtf8("gridLayoutWidget_6"))
self.gridLayout_25 = QtGui.QGridLayout(self.gridLayoutWidget_6)
self.gridLayout_25.setMargin(0)
self.gridLayout_25.setObjectName(_fromUtf8("gridLayout_25"))
self.graphicsView_eeg = GraphicsLayoutWidget(self.gridLayoutWidget_6)
self.graphicsView_eeg.setObjectName(_fromUtf8("graphicsView_eeg"))
self.gridLayout_25.addWidget(self.graphicsView_eeg, 0, 0, 1, 1)
self.push_eegini = QtGui.QPushButton(self.tab_2)
self.push_eegini.setGeometry(QtCore.QRect(700, 470, 93, 29))
self.push_eegini.setObjectName(_fromUtf8("push_eegini"))
self.push_eegend = QtGui.QPushButton(self.tab_2)
self.push_eegend.setGeometry(QtCore.QRect(800, 470, 93, 29))
self.push_eegend.setObjectName(_fromUtf8("push_eegend"))
self.gridLayoutWidget_4 = QtGui.QWidget(self.tab_2)
self.gridLayoutWidget_4.setGeometry(QtCore.QRect(10, 10, 261, 91))
self.gridLayoutWidget_4.setObjectName(_fromUtf8("gridLayoutWidget_4"))
self.gridLayout_4 = QtGui.QGridLayout(self.gridLayoutWidget_4)
self.gridLayout_4.setMargin(0)
self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
self.treeWidget_eeg = QtGui.QTreeWidget(self.gridLayoutWidget_4)
self.treeWidget_eeg.setObjectName(_fromUtf8("treeWidget_eeg"))
self.treeWidget_eeg.headerItem().setText(0, _fromUtf8("1"))
self.treeWidget_eeg.header().setVisible(False)
self.gridLayout_4.addWidget(self.treeWidget_eeg, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
self.tab = QtGui.QWidget()
self.tab.setObjectName(_fromUtf8("tab"))
self.gridLayoutWidget_5 = QtGui.QWidget(self.tab)
self.gridLayoutWidget_5.setGeometry(QtCore.QRect(280, 10, 591, 431))
self.gridLayoutWidget_5.setObjectName(_fromUtf8("gridLayoutWidget_5"))
self.gridLayout_21 = QtGui.QGridLayout(self.gridLayoutWidget_5)
self.gridLayout_21.setMargin(0)
self.gridLayout_21.setObjectName(_fromUtf8("gridLayout_21"))
self.graphicsView_emg = GraphicsLayoutWidget(self.gridLayoutWidget_5)
self.graphicsView_emg.setObjectName(_fromUtf8("graphicsView_emg"))
self.gridLayout_21.addWidget(self.graphicsView_emg, 0, 0, 1, 1)
self.push_emgend = QtGui.QPushButton(self.tab)
self.push_emgend.setGeometry(QtCore.QRect(800, 470, 93, 29))
self.push_emgend.setObjectName(_fromUtf8("push_emgend"))
self.push_emgini = QtGui.QPushButton(self.tab)
self.push_emgini.setGeometry(QtCore.QRect(700, 470, 93, 29))
self.push_emgini.setObjectName(_fromUtf8("push_emgini"))
self.gridLayoutWidget_3 = QtGui.QWidget(self.tab)
self.gridLayoutWidget_3.setGeometry(QtCore.QRect(10, 10, 261, 91))
self.gridLayoutWidget_3.setObjectName(_fromUtf8("gridLayoutWidget_3"))
self.gridLayout_3 = QtGui.QGridLayout(self.gridLayoutWidget_3)
self.gridLayout_3.setMargin(0)
self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
self.treeWidget_emg = QtGui.QTreeWidget(self.gridLayoutWidget_3)
self.treeWidget_emg.setObjectName(_fromUtf8("treeWidget_emg"))
self.treeWidget_emg.headerItem().setText(0, _fromUtf8("1"))
self.treeWidget_emg.header().setVisible(False)
self.gridLayout_3.addWidget(self.treeWidget_emg, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab, _fromUtf8(""))
self.tab_3 = QtGui.QWidget()
self.tab_3.setObjectName(_fromUtf8("tab_3"))
self.gridLayoutWidget_13 = QtGui.QWidget(self.tab_3)
self.gridLayoutWidget_13.setGeometry(QtCore.QRect(280, 10, 591, 431))
self.gridLayoutWidget_13.setObjectName(_fromUtf8("gridLayoutWidget_13"))
self.gridLayout_29 = QtGui.QGridLayout(self.gridLayoutWidget_13)
self.gridLayout_29.setMargin(0)
self.gridLayout_29.setObjectName(_fromUtf8("gridLayout_29"))
self.graphicsView_gyro = GraphicsLayoutWidget(self.gridLayoutWidget_13)
self.graphicsView_gyro.setObjectName(_fromUtf8("graphicsView_gyro"))
self.gridLayout_29.addWidget(self.graphicsView_gyro, 0, 1, 1, 1)
self.push_Gyroini = QtGui.QPushButton(self.tab_3)
self.push_Gyroini.setGeometry(QtCore.QRect(700, 470, 93, 29))
#.........这里部分代码省略.........
示例9: Ui_Qt_CV_MainWindow
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setObjectName [as 别名]
class Ui_Qt_CV_MainWindow(object):
def setupUi(self, Qt_CV_MainWindow):
Qt_CV_MainWindow.setObjectName("Qt_CV_MainWindow")
Qt_CV_MainWindow.resize(1158, 834)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(Qt_CV_MainWindow.sizePolicy().hasHeightForWidth())
Qt_CV_MainWindow.setSizePolicy(sizePolicy)
Qt_CV_MainWindow.setMouseTracking(True)
Qt_CV_MainWindow.setAcceptDrops(False)
self.centralwidget = QtGui.QWidget(Qt_CV_MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.layoutWidget = QtGui.QWidget(self.centralwidget)
self.layoutWidget.setGeometry(QtCore.QRect(480, 50, 671, 41))
self.layoutWidget.setObjectName("layoutWidget")
self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.file_edit = QtGui.QLineEdit(self.layoutWidget)
self.file_edit.setObjectName("file_edit")
self.horizontalLayout.addWidget(self.file_edit)
self.file_button = QtGui.QPushButton(self.layoutWidget)
self.file_button.setObjectName("file_button")
self.horizontalLayout.addWidget(self.file_button)
self.pic_view = GraphicsLayoutWidget(self.centralwidget)
self.pic_view.setGeometry(QtCore.QRect(599, 210, 551, 561))
self.pic_view.setViewportUpdateMode(QtGui.QGraphicsView.FullViewportUpdate)
self.pic_view.setObjectName("pic_view")
self.exec_button = QtGui.QPushButton(self.centralwidget)
self.exec_button.setGeometry(QtCore.QRect(840, 10, 81, 31))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.exec_button.sizePolicy().hasHeightForWidth())
self.exec_button.setSizePolicy(sizePolicy)
self.exec_button.setObjectName("exec_button")
self.file_scrollbar = QtGui.QScrollBar(self.centralwidget)
self.file_scrollbar.setGeometry(QtCore.QRect(480, 190, 431, 20))
self.file_scrollbar.setProperty("value", 50)
self.file_scrollbar.setOrientation(QtCore.Qt.Horizontal)
self.file_scrollbar.setObjectName("file_scrollbar")
self.layoutWidget1 = QtGui.QWidget(self.centralwidget)
self.layoutWidget1.setGeometry(QtCore.QRect(20, 354, 120, 71))
self.layoutWidget1.setObjectName("layoutWidget1")
self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget1)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.label = QtGui.QLabel(self.layoutWidget1)
font = QtGui.QFont()
font.setPointSize(10)
self.label.setFont(font)
self.label.setObjectName("label")
self.verticalLayout.addWidget(self.label)
self.label_2 = QtGui.QLabel(self.layoutWidget1)
font = QtGui.QFont()
font.setPointSize(10)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.verticalLayout.addWidget(self.label_2)
self.hist_view = PlotWidget(self.centralwidget)
self.hist_view.setGeometry(QtCore.QRect(477, 210, 121, 561))
self.hist_view.setObjectName("hist_view")
self.line = QtGui.QFrame(self.centralwidget)
self.line.setGeometry(QtCore.QRect(0, 300, 471, 16))
self.line.setFrameShape(QtGui.QFrame.HLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName("line")
self.color_combo = QtGui.QComboBox(self.centralwidget)
self.color_combo.setGeometry(QtCore.QRect(170, 200, 271, 22))
self.color_combo.setObjectName("color_combo")
self.color_combo.addItem("")
self.color_combo.addItem("")
self.color_combo.addItem("")
self.color_combo.addItem("")
self.color_combo.addItem("")
self.eject_edge_or_not = QtGui.QCheckBox(self.centralwidget)
self.eject_edge_or_not.setGeometry(QtCore.QRect(20, 620, 171, 19))
self.eject_edge_or_not.setObjectName("eject_edge_or_not")
self.label_5 = QtGui.QLabel(self.centralwidget)
self.label_5.setGeometry(QtCore.QRect(20, 200, 81, 16))
font = QtGui.QFont()
font.setPointSize(10)
self.label_5.setFont(font)
self.label_5.setObjectName("label_5")
self.label_6 = QtGui.QLabel(self.centralwidget)
self.label_6.setGeometry(QtCore.QRect(20, 170, 81, 21))
font = QtGui.QFont()
font.setPointSize(10)
self.label_6.setFont(font)
self.label_6.setObjectName("label_6")
self.smooth_combo = QtGui.QComboBox(self.centralwidget)
self.smooth_combo.setGeometry(QtCore.QRect(170, 170, 271, 22))
self.smooth_combo.setObjectName("smooth_combo")
self.smooth_combo.addItem("")
self.smooth_combo.addItem("")
self.smooth_combo.addItem("")
self.smooth_combo.addItem("")
self.smooth_combo.addItem("")
self.line_2 = QtGui.QFrame(self.centralwidget)
#.........这里部分代码省略.........
示例10: Ui_MainWindow
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(877, 839)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.gridLayout = QtGui.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.tab = QtGui.QWidget()
self.tab.setObjectName(_fromUtf8("tab"))
self.gridLayout_3 = QtGui.QGridLayout(self.tab)
self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
self.graphicsView = GraphicsLayoutWidget(self.tab)
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.gridLayout_3.addWidget(self.graphicsView, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab, _fromUtf8(""))
self.tab_2 = QtGui.QWidget()
self.tab_2.setObjectName(_fromUtf8("tab_2"))
self.gridLayout_8 = QtGui.QGridLayout(self.tab_2)
self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
self.graphicsView_2 = GraphicsLayoutWidget(self.tab_2)
self.graphicsView_2.setObjectName(_fromUtf8("graphicsView_2"))
self.gridLayout_8.addWidget(self.graphicsView_2, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
self.tab_3 = QtGui.QWidget()
self.tab_3.setObjectName(_fromUtf8("tab_3"))
self.gridLayout_9 = QtGui.QGridLayout(self.tab_3)
self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
self.graphicsView_3 = GraphicsLayoutWidget(self.tab_3)
self.graphicsView_3.setObjectName(_fromUtf8("graphicsView_3"))
self.gridLayout_9.addWidget(self.graphicsView_3, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 877, 19))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setObjectName(_fromUtf8("menuFile"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.dockWidget = QtGui.QDockWidget(MainWindow)
self.dockWidget.setObjectName(_fromUtf8("dockWidget"))
self.dockWidgetContents = QtGui.QWidget()
self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
self.gridLayout_4 = QtGui.QGridLayout(self.dockWidgetContents)
self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.gridLayout_4.addItem(spacerItem, 3, 0, 1, 1)
self.groupBox_2 = QtGui.QGroupBox(self.dockWidgetContents)
self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
self.gridLayout_6 = QtGui.QGridLayout()
self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
self.fileLineEdit1_3 = QtGui.QLineEdit(self.groupBox_2)
self.fileLineEdit1_3.setReadOnly(True)
self.fileLineEdit1_3.setObjectName(_fromUtf8("fileLineEdit1_3"))
self.gridLayout_6.addWidget(self.fileLineEdit1_3, 0, 2, 1, 1)
self.fileLabel1_3 = QtGui.QLabel(self.groupBox_2)
self.fileLabel1_3.setObjectName(_fromUtf8("fileLabel1_3"))
self.gridLayout_6.addWidget(self.fileLabel1_3, 0, 0, 1, 1)
self.eeg_channel_combo_box = QtGui.QComboBox(self.groupBox_2)
self.eeg_channel_combo_box.setObjectName(_fromUtf8("eeg_channel_combo_box"))
self.gridLayout_6.addWidget(self.eeg_channel_combo_box, 1, 2, 1, 1)
self.label_3 = QtGui.QLabel(self.groupBox_2)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.gridLayout_6.addWidget(self.label_3, 1, 0, 1, 1)
self.gridLayout_2.addLayout(self.gridLayout_6, 0, 0, 1, 1)
self.gridLayout_4.addWidget(self.groupBox_2, 0, 0, 1, 1)
self.groupBox_3 = QtGui.QGroupBox(self.dockWidgetContents)
self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
self.gridLayout_5 = QtGui.QGridLayout(self.groupBox_3)
self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
self.gridLayout_7 = QtGui.QGridLayout()
self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
self.label_5 = QtGui.QLabel(self.groupBox_3)
self.label_5.setObjectName(_fromUtf8("label_5"))
self.gridLayout_7.addWidget(self.label_5, 2, 0, 1, 1)
self.label_6 = QtGui.QLabel(self.groupBox_3)
self.label_6.setObjectName(_fromUtf8("label_6"))
self.gridLayout_7.addWidget(self.label_6, 1, 0, 1, 1)
self.fileLineEdit1_4 = QtGui.QLineEdit(self.groupBox_3)
self.fileLineEdit1_4.setReadOnly(True)
self.fileLineEdit1_4.setObjectName(_fromUtf8("fileLineEdit1_4"))
self.gridLayout_7.addWidget(self.fileLineEdit1_4, 0, 2, 1, 1)
self.fileLabel1_4 = QtGui.QLabel(self.groupBox_3)
self.fileLabel1_4.setObjectName(_fromUtf8("fileLabel1_4"))
self.gridLayout_7.addWidget(self.fileLabel1_4, 0, 0, 1, 1)
self.epoch_tmin_spinbox = QtGui.QDoubleSpinBox(self.groupBox_3)
self.epoch_tmin_spinbox.setMinimum(-1.0)
self.epoch_tmin_spinbox.setMaximum(1.0)
self.epoch_tmin_spinbox.setSingleStep(0.01)
self.epoch_tmin_spinbox.setProperty("value", -0.2)
self.epoch_tmin_spinbox.setObjectName(_fromUtf8("epoch_tmin_spinbox"))
self.gridLayout_7.addWidget(self.epoch_tmin_spinbox, 2, 2, 1, 1)
#.........这里部分代码省略.........
示例11: Ui_Form
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setObjectName [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
'''Defines the general properties of the window'''
Form.setObjectName(_fromUtf8("Form"))
Form.resize(1500, 1000)
self.gridLayout = QtGui.QGridLayout(Form)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
'''Defines the text label for reference beam properties'''
self.refbeamlabel = QtGui.QLabel(Form)
self.refbeamlabel.setObjectName(_fromUtf8("refbeamlabel"))
self.gridLayout.addWidget(self.refbeamlabel, 1, 0, 1, 1)
'''Defines the spin box for x0'''
self.x0Spin = QtGui.QDoubleSpinBox(Form)
self.x0Spin.setRange(0.,754.)
self.x0Spin.setProperty("value", 350)
self.x0Spin.setObjectName(_fromUtf8("x0Spin"))
self.gridLayout.addWidget(self.x0Spin, 2, 0, 1, 1)
'''Defines the label for the x0 spin box'''
self.x0label = QtGui.QLabel(Form)
self.x0label.setObjectName(_fromUtf8("x0label"))
self.gridLayout.addWidget(self.x0label, 2, 1, 1, 1)
'''Defines the spin box for y0'''
self.y0Spin = QtGui.QDoubleSpinBox(Form)
self.y0Spin.setRange(0.,480.)
self.y0Spin.setProperty("value", 240)
self.y0Spin.setObjectName(_fromUtf8("y0Spin"))
self.gridLayout.addWidget(self.y0Spin, 3, 0, 1, 1)
'''Defines the label for the y0 spin box'''
self.y0label = QtGui.QLabel(Form)
self.y0label.setObjectName(_fromUtf8("y0label"))
self.gridLayout.addWidget(self.y0label, 3, 1, 1, 1)
'''Defines the spin box for the horizontal waist'''
self.sigmaxSpin = QtGui.QDoubleSpinBox(Form)
self.sigmaxSpin.setRange(0.,500.)
self.sigmaxSpin.setProperty("value", 30.)
self.sigmaxSpin.setObjectName(_fromUtf8("sigmaxSpin"))
self.gridLayout.addWidget(self.sigmaxSpin, 4, 0, 1, 1)
'''Defines the label for the horizontal waist spin box'''
self.sigmaxlabel = QtGui.QLabel(Form)
self.sigmaxlabel.setObjectName(_fromUtf8("sigmaxlabel"))
self.gridLayout.addWidget(self.sigmaxlabel, 4, 1, 1, 1)
'''Defines the spin box for the vertical waist'''
self.sigmaySpin = QtGui.QDoubleSpinBox(Form)
self.sigmaySpin.setRange(0.,500.)
self.sigmaySpin.setProperty("value", 50.)
self.sigmaySpin.setObjectName(_fromUtf8("sigmaySpin"))
self.gridLayout.addWidget(self.sigmaySpin, 5, 0, 1, 1)
'''Defines the label for the vertical waist spin box'''
self.sigmaylabel = QtGui.QLabel(Form)
self.sigmaylabel.setObjectName(_fromUtf8("sigmaylabel"))
self.gridLayout.addWidget(self.sigmaylabel, 5, 1, 1, 1)
# self.rotangleSpin = QtGui.QDoubleSpinBox(Form)
# self.rotangleSpin.setProperty("value", 200.)
# self.rotangleSpin.setObjectName(_fromUtf8("rotangleSpin"))
# self.gridLayout.addWidget(self.rotangleSpin, 5, 0, 1, 1)
# self.rotanglelabel = QtGui.QLabel(Form)
# self.rotanglelabel.setObjectName(_fromUtf8("rotanglelabel"))
# self.gridLayout.addWidget(self.rotanglelabel, 5, 1, 1, 1)
'''Defines the label for the camera'''
self.camlabel = QtGui.QLabel(Form)
self.camlabel.setObjectName(_fromUtf8("camlabel"))
self.gridLayout.addWidget(self.camlabel, 1, 2, 1, 1)
'''Defines the field to choose a camera'''
self.choosecam = QtGui.QComboBox()
self.choosecam.setObjectName(_fromUtf8("choosecam"))
self.gridLayout.addWidget(self.choosecam, 2, 2, 1, 1)
# self.choosecam.addItem("Test 1")
# self.choosecam.addItem("Test 2")
'''Defines the text label for camera settings'''
self.camsettingslabel = QtGui.QLabel(Form)
self.camsettingslabel.setObjectName(_fromUtf8("camsettingslabel"))
self.gridLayout.addWidget(self.camsettingslabel, 4, 2, 1, 2)
'''Defines the spin box for the exposure time'''
self.exposureSpin = QtGui.QDoubleSpinBox(Form)
self.exposureSpin.setRange(0.,100.)
self.exposureSpin.setProperty("value", 1.)
self.exposureSpin.setDecimals(4)
self.exposureSpin.setSingleStep(0.1)
self.exposureSpin.setObjectName(_fromUtf8("exposureSpin"))
self.gridLayout.addWidget(self.exposureSpin, 5, 2, 1, 1)
#.........这里部分代码省略.........
示例12: Ui_SignalWidget
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setObjectName [as 别名]
class Ui_SignalWidget(object):
def setupUi(self, SignalWidget):
SignalWidget.setObjectName("SignalWidget")
SignalWidget.resize(650, 511)
self.gridLayout = QtWidgets.QGridLayout(SignalWidget)
self.gridLayout.setObjectName("gridLayout")
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.plotWidget = GraphicsLayoutWidget(SignalWidget)
self.plotWidget.setObjectName("plotWidget")
self.horizontalLayout_2.addWidget(self.plotWidget)
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.hMinusButton = QtWidgets.QPushButton(SignalWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.hMinusButton.sizePolicy().hasHeightForWidth())
self.hMinusButton.setSizePolicy(sizePolicy)
self.hMinusButton.setMinimumSize(QtCore.QSize(30, 30))
self.hMinusButton.setMaximumSize(QtCore.QSize(30, 30))
self.hMinusButton.setFlat(False)
self.hMinusButton.setObjectName("hMinusButton")
self.horizontalLayout.addWidget(self.hMinusButton)
self.hPlusButton = QtWidgets.QPushButton(SignalWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.hPlusButton.sizePolicy().hasHeightForWidth())
self.hPlusButton.setSizePolicy(sizePolicy)
self.hPlusButton.setMinimumSize(QtCore.QSize(30, 30))
self.hPlusButton.setMaximumSize(QtCore.QSize(30, 30))
self.hPlusButton.setObjectName("hPlusButton")
self.horizontalLayout.addWidget(self.hPlusButton)
self.verticalLayout_2.addLayout(self.horizontalLayout)
self.gridLayout.addLayout(self.verticalLayout_2, 0, 0, 1, 1)
self.groupBox = QtWidgets.QGroupBox(SignalWidget)
self.groupBox.setMinimumSize(QtCore.QSize(250, 0))
self.groupBox.setObjectName("groupBox")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.probeButton = QtWidgets.QRadioButton(self.groupBox)
self.probeButton.setChecked(True)
self.probeButton.setObjectName("probeButton")
self.buttonGroup = QtWidgets.QButtonGroup(SignalWidget)
self.buttonGroup.setObjectName("buttonGroup")
self.buttonGroup.addButton(self.probeButton)
self.verticalLayout_3.addWidget(self.probeButton)
self.signalButton = QtWidgets.QRadioButton(self.groupBox)
self.signalButton.setObjectName("signalButton")
self.buttonGroup.addButton(self.signalButton)
self.verticalLayout_3.addWidget(self.signalButton)
spacerItem = QtWidgets.QSpacerItem(20, 400, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_3.addItem(spacerItem)
self.gridLayout.addWidget(self.groupBox, 0, 1, 1, 1)
self.retranslateUi(SignalWidget)
QtCore.QMetaObject.connectSlotsByName(SignalWidget)
def retranslateUi(self, SignalWidget):
_translate = QtCore.QCoreApplication.translate
SignalWidget.setWindowTitle(_translate("SignalWidget", "Form"))
self.hMinusButton.setText(_translate("SignalWidget", "-"))
self.hPlusButton.setText(_translate("SignalWidget", "+"))
self.groupBox.setTitle(_translate("SignalWidget", "Control"))
self.probeButton.setText(_translate("SignalWidget", "Probe"))
self.signalButton.setText(_translate("SignalWidget", "Signals"))
示例13: Ui_QSpectrumAnalyzerMainWindow
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setObjectName [as 别名]
class Ui_QSpectrumAnalyzerMainWindow(object):
def setupUi(self, QSpectrumAnalyzerMainWindow):
QSpectrumAnalyzerMainWindow.setObjectName(_fromUtf8("QSpectrumAnalyzerMainWindow"))
QSpectrumAnalyzerMainWindow.resize(1200, 810)
self.centralwidget = QtGui.QWidget(QSpectrumAnalyzerMainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.plotSplitter = QtGui.QSplitter(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.plotSplitter.sizePolicy().hasHeightForWidth())
self.plotSplitter.setSizePolicy(sizePolicy)
self.plotSplitter.setOrientation(QtCore.Qt.Vertical)
self.plotSplitter.setObjectName(_fromUtf8("plotSplitter"))
self.mainPlotLayout = GraphicsLayoutWidget(self.plotSplitter)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mainPlotLayout.sizePolicy().hasHeightForWidth())
self.mainPlotLayout.setSizePolicy(sizePolicy)
self.mainPlotLayout.setObjectName(_fromUtf8("mainPlotLayout"))
self.waterfallPlotLayout = GraphicsLayoutWidget(self.plotSplitter)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.waterfallPlotLayout.sizePolicy().hasHeightForWidth())
self.waterfallPlotLayout.setSizePolicy(sizePolicy)
self.waterfallPlotLayout.setObjectName(_fromUtf8("waterfallPlotLayout"))
self.horizontalLayout.addWidget(self.plotSplitter)
QSpectrumAnalyzerMainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(QSpectrumAnalyzerMainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1200, 30))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menu_File = QtGui.QMenu(self.menubar)
self.menu_File.setObjectName(_fromUtf8("menu_File"))
self.menu_Help = QtGui.QMenu(self.menubar)
self.menu_Help.setObjectName(_fromUtf8("menu_Help"))
QSpectrumAnalyzerMainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(QSpectrumAnalyzerMainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
QSpectrumAnalyzerMainWindow.setStatusBar(self.statusbar)
self.controlsDockWidget = QtGui.QDockWidget(QSpectrumAnalyzerMainWindow)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.controlsDockWidget.sizePolicy().hasHeightForWidth())
self.controlsDockWidget.setSizePolicy(sizePolicy)
self.controlsDockWidget.setMinimumSize(QtCore.QSize(190, 10))
self.controlsDockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable)
self.controlsDockWidget.setObjectName(_fromUtf8("controlsDockWidget"))
self.controlsDockWidgetContents = QtGui.QWidget()
self.controlsDockWidgetContents.setObjectName(_fromUtf8("controlsDockWidgetContents"))
self.gridLayout_2 = QtGui.QGridLayout(self.controlsDockWidgetContents)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
self.startButton = QtGui.QPushButton(self.controlsDockWidgetContents)
self.startButton.setObjectName(_fromUtf8("startButton"))
self.gridLayout_2.addWidget(self.startButton, 0, 0, 1, 1)
self.stopButton = QtGui.QPushButton(self.controlsDockWidgetContents)
self.stopButton.setObjectName(_fromUtf8("stopButton"))
self.gridLayout_2.addWidget(self.stopButton, 0, 1, 1, 1)
self.singleShotButton = QtGui.QPushButton(self.controlsDockWidgetContents)
self.singleShotButton.setObjectName(_fromUtf8("singleShotButton"))
self.gridLayout_2.addWidget(self.singleShotButton, 1, 0, 1, 2)
spacerItem = QtGui.QSpacerItem(20, 561, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.gridLayout_2.addItem(spacerItem, 2, 0, 1, 1)
self.controlsDockWidget.setWidget(self.controlsDockWidgetContents)
QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.controlsDockWidget)
self.frequencyDockWidget = QtGui.QDockWidget(QSpectrumAnalyzerMainWindow)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frequencyDockWidget.sizePolicy().hasHeightForWidth())
self.frequencyDockWidget.setSizePolicy(sizePolicy)
self.frequencyDockWidget.setMinimumSize(QtCore.QSize(225, 10))
self.frequencyDockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable)
self.frequencyDockWidget.setObjectName(_fromUtf8("frequencyDockWidget"))
self.frequencyDockWidgetContents = QtGui.QWidget()
self.frequencyDockWidgetContents.setObjectName(_fromUtf8("frequencyDockWidgetContents"))
self.formLayout = QtGui.QFormLayout(self.frequencyDockWidgetContents)
self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
self.formLayout.setObjectName(_fromUtf8("formLayout"))
self.label_2 = QtGui.QLabel(self.frequencyDockWidgetContents)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2)
self.startFreqSpinBox = QtGui.QDoubleSpinBox(self.frequencyDockWidgetContents)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.startFreqSpinBox.sizePolicy().hasHeightForWidth())
self.startFreqSpinBox.setSizePolicy(sizePolicy)
self.startFreqSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.startFreqSpinBox.setDecimals(3)
self.startFreqSpinBox.setMinimum(24.0)
self.startFreqSpinBox.setMaximum(1766.0)
self.startFreqSpinBox.setProperty("value", 87.0)
self.startFreqSpinBox.setObjectName(_fromUtf8("startFreqSpinBox"))
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.startFreqSpinBox)
self.label_3 = QtGui.QLabel(self.frequencyDockWidgetContents)
#.........这里部分代码省略.........
示例14: Ui_MainWindow
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1280, 800)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.splitter_3 = QtWidgets.QSplitter(self.centralwidget)
self.splitter_3.setOrientation(QtCore.Qt.Horizontal)
self.splitter_3.setObjectName("splitter_3")
self.tabWidget = QtWidgets.QTabWidget(self.splitter_3)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
self.tabWidget.setSizePolicy(sizePolicy)
self.tabWidget.setObjectName("tabWidget")
self.widget = QtWidgets.QWidget()
self.widget.setObjectName("widget")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.widget)
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_2.setSpacing(0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.treeWidget = QtWidgets.QTreeWidget(self.widget)
self.treeWidget.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.treeWidget.sizePolicy().hasHeightForWidth())
self.treeWidget.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Helvetica Neue")
self.treeWidget.setFont(font)
self.treeWidget.setAutoExpandDelay(-1)
self.treeWidget.setColumnCount(8)
self.treeWidget.setObjectName("treeWidget")
self.treeWidget.headerItem().setText(0, "1")
font = QtGui.QFont()
font.setFamily("Helvetica Neue")
font.setKerning(True)
self.treeWidget.headerItem().setFont(0, font)
self.treeWidget.headerItem().setText(1, "2")
font = QtGui.QFont()
font.setFamily("Helvetica Neue")
self.treeWidget.headerItem().setFont(1, font)
self.treeWidget.headerItem().setText(2, "3")
font = QtGui.QFont()
font.setFamily("Helvetica Neue")
self.treeWidget.headerItem().setFont(2, font)
self.treeWidget.headerItem().setText(3, "4")
font = QtGui.QFont()
font.setFamily("Helvetica Neue")
self.treeWidget.headerItem().setFont(3, font)
self.treeWidget.headerItem().setText(4, "5")
self.treeWidget.headerItem().setText(5, "6")
self.treeWidget.headerItem().setText(6, "7")
self.treeWidget.headerItem().setText(7, "8")
self.treeWidget.header().setDefaultSectionSize(50)
self.treeWidget.header().setMinimumSectionSize(5)
self.treeWidget.header().setSortIndicatorShown(True)
self.verticalLayout_2.addWidget(self.treeWidget)
self.tabWidget.addTab(self.widget, "")
self.tabWidgetPage2 = QtWidgets.QWidget()
self.tabWidgetPage2.setObjectName("tabWidgetPage2")
self.verticalLayout = QtWidgets.QVBoxLayout(self.tabWidgetPage2)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.textBrowser_4 = QtWidgets.QTextBrowser(self.tabWidgetPage2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textBrowser_4.sizePolicy().hasHeightForWidth())
self.textBrowser_4.setSizePolicy(sizePolicy)
self.textBrowser_4.setBaseSize(QtCore.QSize(300, 0))
font = QtGui.QFont()
font.setPointSize(10)
self.textBrowser_4.setFont(font)
self.textBrowser_4.setObjectName("textBrowser_4")
self.verticalLayout.addWidget(self.textBrowser_4)
self.tabWidget.addTab(self.tabWidgetPage2, "")
self.splitter_2 = QtWidgets.QSplitter(self.splitter_3)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(100)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.splitter_2.sizePolicy().hasHeightForWidth())
self.splitter_2.setSizePolicy(sizePolicy)
self.splitter_2.setOrientation(QtCore.Qt.Vertical)
self.splitter_2.setObjectName("splitter_2")
self.frame_5 = QtWidgets.QFrame(self.splitter_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.frame_5.sizePolicy().hasHeightForWidth())
self.frame_5.setSizePolicy(sizePolicy)
self.frame_5.setMaximumSize(QtCore.QSize(16777215, 180))
self.frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_5.setObjectName("frame_5")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_5)
#.........这里部分代码省略.........
示例15: Ui_MainWindow
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(1348, 946)
MainWindow.setMinimumSize(QtCore.QSize(0, 0))
MainWindow.setStyleSheet(_fromUtf8("\n"
"/*\n"
" Android Material Dark\n"
" COLOR_DARK = #212121 Grey 900\n"
" COLOR_MEDIUM = #424242 Grey 800\n"
" COLOR_MEDLIGHT = #757575 Grey 600\n"
" COLOR_LIGHT = #DDDDDD White\n"
" COLOR_ACCENT = #3F51B5 Indigo 500\n"
"*/\n"
"\n"
"* {\n"
" background:qlineargradient(spread:pad, x1:0.517, y1:0.25, x2:1, y2:1, stop:0.211207 rgba(0, 0, 0, 255), stop:0.456897 rgba(39, 103, 106, 255), stop:1 rgba(255, 255, 255, 255));\n"
" color: #DDDDDD;\n"
" border: 1px solid #757575;\n"
"}\n"
"\n"
"QWidget::item:selected {\n"
" background: #3F51B5;\n"
"}\n"
"\n"
"QCheckBox, QRadioButton {\n"
" border: none;\n"
"}\n"
"\n"
"QRadioButton::indicator, QCheckBox::indicator {\n"
" width: 13px;\n"
" height: 13px;\n"
"}\n"
"\n"
"QRadioButton::indicator::unchecked, QCheckBox::indicator::unchecked {\n"
" border: 1px solid #757575;\n"
" background: none;\n"
"}\n"
"\n"
"QRadioButton::indicator:unchecked:hover, QCheckBox::indicator:unchecked:hover {\n"
" border: 1px solid #DDDDDD;\n"
"}\n"
"\n"
"QRadioButton::indicator::checked, QCheckBox::indicator::checked {\n"
" border: 1px solid #757575;\n"
" background: #757575;\n"
"}\n"
"\n"
"QRadioButton::indicator:checked:hover, QCheckBox::indicator:checked:hover {\n"
" border: 1px solid #DDDDDD;\n"
" background: #DDDDDD;\n"
"}\n"
"\n"
"QGroupBox {\n"
" margin-top: 6px;\n"
"}\n"
"\n"
"QGroupBox::title {\n"
" top: -7px;\n"
" left: 7px;\n"
"}\n"
"\n"
"QScrollBar {\n"
" border: 1px solid #757575;\n"
" background: #212121;\n"
"}\n"
"\n"
"QScrollBar:horizontal {\n"
" height: 15px;\n"
" margin: 0px 0px 0px 32px;\n"
"}\n"
"\n"
"QScrollBar:vertical {\n"
" width: 15px;\n"
" margin: 32px 0px 0px 0px;\n"
"}\n"
"\n"
"QScrollBar::handle {\n"
" background: #424242;\n"
" border: 1px solid #757575;\n"
"}\n"
"\n"
"QScrollBar::handle:horizontal {\n"
" border-width: 0px 1px 0px 1px;\n"
"}\n"
"\n"
"QScrollBar::handle:vertical {\n"
" border-width: 1px 0px 1px 0px;\n"
"}\n"
"\n"
"QScrollBar::handle:horizontal {\n"
" min-width: 20px;\n"
"}\n"
"\n"
"QScrollBar::handle:vertical {\n"
" min-height: 20px;\n"
"}\n"
"\n"
"QScrollBar::add-line, QScrollBar::sub-line {\n"
" background:#424242;\n"
#.........这里部分代码省略.........