本文整理匯總了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"
#.........這裏部分代碼省略.........