本文整理汇总了Python中pyqtgraph.GraphicsLayoutWidget.setStyleSheet方法的典型用法代码示例。如果您正苦于以下问题:Python GraphicsLayoutWidget.setStyleSheet方法的具体用法?Python GraphicsLayoutWidget.setStyleSheet怎么用?Python GraphicsLayoutWidget.setStyleSheet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyqtgraph.GraphicsLayoutWidget
的用法示例。
在下文中一共展示了GraphicsLayoutWidget.setStyleSheet方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_MainWindow
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setStyleSheet [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(704, 558)
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: #212121;\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"
#.........这里部分代码省略.........