本文整理汇总了Python中pyqtgraph.PlotWidget.setBackgroundBrush方法的典型用法代码示例。如果您正苦于以下问题:Python PlotWidget.setBackgroundBrush方法的具体用法?Python PlotWidget.setBackgroundBrush怎么用?Python PlotWidget.setBackgroundBrush使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyqtgraph.PlotWidget
的用法示例。
在下文中一共展示了PlotWidget.setBackgroundBrush方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_MainWindow
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setBackgroundBrush [as 别名]
#.........这里部分代码省略.........
self.verticalLayout_12.addWidget(self.group_Select)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar()
self.menubar.setGeometry(QtCore.QRect(0, 0, 1145, 22))
self.menubar.setObjectName("menubar")
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setObjectName("menuFile")
self.menuEdit = QtGui.QMenu(self.menubar)
self.menuEdit.setObjectName("menuEdit")
self.menuTools = QtGui.QMenu(self.menubar)
self.menuTools.setObjectName("menuTools")
self.menuView = QtGui.QMenu(self.menubar)
self.menuView.setObjectName("menuView")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.dock_graphPlot = QtGui.QDockWidget(MainWindow)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.dock_graphPlot.sizePolicy().hasHeightForWidth())
self.dock_graphPlot.setSizePolicy(sizePolicy)
self.dock_graphPlot.setMinimumSize(QtCore.QSize(400, 286))
self.dock_graphPlot.setAllowedAreas(QtCore.Qt.BottomDockWidgetArea|QtCore.Qt.LeftDockWidgetArea|QtCore.Qt.RightDockWidgetArea)
self.dock_graphPlot.setObjectName("dock_graphPlot")
self.dockWidgetContents_6 = QtGui.QWidget()
self.dockWidgetContents_6.setObjectName("dockWidgetContents_6")
self.verticalLayout = QtGui.QVBoxLayout(self.dockWidgetContents_6)
self.verticalLayout.setObjectName("verticalLayout")
self.graph_plotError = PlotWidget(self.dockWidgetContents_6)
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
self.graph_plotError.setBackgroundBrush(brush)
self.graph_plotError.setObjectName("graph_plotError")
self.verticalLayout.addWidget(self.graph_plotError)
self.gridLayout_2 = QtGui.QGridLayout()
self.gridLayout_2.setObjectName("gridLayout_2")
self.horizontalLayout_4 = QtGui.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.label_6 = QtGui.QLabel(self.dockWidgetContents_6)
self.label_6.setObjectName("label_6")
self.horizontalLayout_4.addWidget(self.label_6)
spacerItem42 = QtGui.QSpacerItem(21, 20, QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem42)
self.box_refreshLimit = QtGui.QSpinBox(self.dockWidgetContents_6)
self.box_refreshLimit.setFrame(True)
self.box_refreshLimit.setReadOnly(False)
self.box_refreshLimit.setButtonSymbols(QtGui.QAbstractSpinBox.UpDownArrows)
self.box_refreshLimit.setMinimum(1)
self.box_refreshLimit.setObjectName("box_refreshLimit")
self.horizontalLayout_4.addWidget(self.box_refreshLimit)
spacerItem43 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem43)
self.gridLayout_2.addLayout(self.horizontalLayout_4, 0, 0, 1, 1)
self.horizontalLayout_7 = QtGui.QHBoxLayout()
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.label_7 = QtGui.QLabel(self.dockWidgetContents_6)
self.label_7.setObjectName("label_7")
self.horizontalLayout_7.addWidget(self.label_7)
spacerItem44 = QtGui.QSpacerItem(50, 20, QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_7.addItem(spacerItem44)
self.box_currentIter = QtGui.QSpinBox(self.dockWidgetContents_6)
self.box_currentIter.setReadOnly(True)
self.box_currentIter.setButtonSymbols(QtGui.QAbstractSpinBox.NoButtons)
self.box_currentIter.setMaximum(9999)