本文整理汇总了Python中pyqtgraph.PlotWidget.setForegroundBrush方法的典型用法代码示例。如果您正苦于以下问题:Python PlotWidget.setForegroundBrush方法的具体用法?Python PlotWidget.setForegroundBrush怎么用?Python PlotWidget.setForegroundBrush使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyqtgraph.PlotWidget
的用法示例。
在下文中一共展示了PlotWidget.setForegroundBrush方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_EveAnalyze
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setForegroundBrush [as 别名]
#.........这里部分代码省略.........
self.WeaponStack = QtGui.QToolBox(self.weapon_tab)
self.WeaponStack.setObjectName(_fromUtf8("WeaponStack"))
self.page_7 = QtGui.QWidget()
self.page_7.setGeometry(QtCore.QRect(0, 0, 93, 79))
self.page_7.setObjectName(_fromUtf8("page_7"))
self.verticalLayout_7 = QtGui.QVBoxLayout(self.page_7)
self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
self.pushButton_3 = QtGui.QPushButton(self.page_7)
self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
self.verticalLayout_7.addWidget(self.pushButton_3)
self.label_2 = QtGui.QLabel(self.page_7)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.verticalLayout_7.addWidget(self.label_2)
self.label = QtGui.QLabel(self.page_7)
self.label.setObjectName(_fromUtf8("label"))
self.verticalLayout_7.addWidget(self.label)
self.WeaponStack.addItem(self.page_7, _fromUtf8(""))
self.page = QtGui.QWidget()
self.page.setGeometry(QtCore.QRect(0, 0, 294, 258))
self.page.setObjectName(_fromUtf8("page"))
self.verticalLayout_12 = QtGui.QVBoxLayout(self.page)
self.verticalLayout_12.setObjectName(_fromUtf8("verticalLayout_12"))
self.WeaponStack.addItem(self.page, _fromUtf8(""))
self.verticalLayout_10.addWidget(self.WeaponStack)
self.tabWidget.addTab(self.weapon_tab, _fromUtf8(""))
self.verticalLayout_2.addWidget(self.tabWidget)
self.scrollArea.setWidget(self.scrollAreaWidgetContents_2)
self.listStats = QtGui.QListWidget(self.splitter)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.listStats.sizePolicy().hasHeightForWidth())
self.listStats.setSizePolicy(sizePolicy)
self.listStats.setMaximumSize(QtCore.QSize(16777215, 100))
self.listStats.setObjectName(_fromUtf8("listStats"))
self.plot_widget = PlotWidget(self.splitter_3)
self.plot_widget.setMinimumSize(QtCore.QSize(250, 208))
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.NoBrush)
self.plot_widget.setForegroundBrush(brush)
self.plot_widget.setObjectName(_fromUtf8("plot_widget"))
self.verticalLayout_6.addWidget(self.splitter_3)
self.horizontalLayout_2.addLayout(self.verticalLayout_6)
EveAnalyze.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(EveAnalyze)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1102, 21))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuActions = QtGui.QMenu(self.menubar)
self.menuActions.setObjectName(_fromUtf8("menuActions"))
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setObjectName(_fromUtf8("menuFile"))
EveAnalyze.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(EveAnalyze)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
EveAnalyze.setStatusBar(self.statusbar)
self.actionSelect_Folder = QtGui.QAction(EveAnalyze)
self.actionSelect_Folder.setObjectName(_fromUtf8("actionSelect_Folder"))
self.actionImport_All_Files = QtGui.QAction(EveAnalyze)
self.actionImport_All_Files.setObjectName(_fromUtf8("actionImport_All_Files"))
self.menuActions.addAction(self.actionImport_All_Files)
self.menuFile.addAction(self.actionSelect_Folder)
self.menubar.addAction(self.menuFile.menuAction())
self.menubar.addAction(self.menuActions.menuAction())
self.retranslateUi(EveAnalyze)
self.tabWidget.setCurrentIndex(0)
self.pilotStack.setCurrentIndex(0)
self.pilotStack.layout().setSpacing(0)
self.WeaponStack.setCurrentIndex(1)
QtCore.QMetaObject.connectSlotsByName(EveAnalyze)
def retranslateUi(self, EveAnalyze):
EveAnalyze.setWindowTitle(QtGui.QApplication.translate("reVEmind", "reVEmind 0.1a", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton.setText(QtGui.QApplication.translate("reVEmind", "PushButton", None, QtGui.QApplication.UnicodeUTF8))
item = self.pilotTable.verticalHeaderItem(0)
item.setText(QtGui.QApplication.translate("reVEmind", "Total Dmg", None, QtGui.QApplication.UnicodeUTF8))
item = self.pilotTable.verticalHeaderItem(1)
item.setText(QtGui.QApplication.translate("reVEmind", "Avg DPS", None, QtGui.QApplication.UnicodeUTF8))
item = self.pilotTable.verticalHeaderItem(2)
item.setText(QtGui.QApplication.translate("reVEmind", "Total Hits", None, QtGui.QApplication.UnicodeUTF8))
item = self.pilotTable.verticalHeaderItem(3)
item.setText(QtGui.QApplication.translate("reVEmind", "Best Hit", None, QtGui.QApplication.UnicodeUTF8))
item = self.pilotTable.verticalHeaderItem(4)
item.setText(QtGui.QApplication.translate("reVEmind", "Hit Accy", None, QtGui.QApplication.UnicodeUTF8))
item = self.pilotTable.horizontalHeaderItem(0)
item.setText(QtGui.QApplication.translate("reVEmind", "Dealt", None, QtGui.QApplication.UnicodeUTF8))
item = self.pilotTable.horizontalHeaderItem(1)
item.setText(QtGui.QApplication.translate("reVEmind", "Received", None, QtGui.QApplication.UnicodeUTF8))
self.pilotStack.setItemText(self.pilotStack.indexOf(self.pilotStack_page), QtGui.QApplication.translate("reVEmind", "Page", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.pilot_tab), QtGui.QApplication.translate("reVEmind", "Pilot", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_3.setText(QtGui.QApplication.translate("reVEmind", "PushButton", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setText(QtGui.QApplication.translate("reVEmind", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("reVEmind", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
self.WeaponStack.setItemText(self.WeaponStack.indexOf(self.page_7), QtGui.QApplication.translate("reVEmind", "Page 1", None, QtGui.QApplication.UnicodeUTF8))
self.WeaponStack.setItemText(self.WeaponStack.indexOf(self.page), QtGui.QApplication.translate("reVEmind", "Page", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.weapon_tab), QtGui.QApplication.translate("reVEmind", "Weapon", None, QtGui.QApplication.UnicodeUTF8))
self.menuActions.setTitle(QtGui.QApplication.translate("reVEmind", "Actions", None, QtGui.QApplication.UnicodeUTF8))
self.menuFile.setTitle(QtGui.QApplication.translate("reVEmind", "File", None, QtGui.QApplication.UnicodeUTF8))
self.actionSelect_Folder.setText(QtGui.QApplication.translate("reVEmind", "Select Folder", None, QtGui.QApplication.UnicodeUTF8))
self.actionImport_All_Files.setText(QtGui.QApplication.translate("reVEmind", "Import All Files", None, QtGui.QApplication.UnicodeUTF8))