当前位置: 首页>>代码示例>>Python>>正文


Python MatplotlibWidget.setStyleSheet方法代码示例

本文整理汇总了Python中matplotlibwidget.MatplotlibWidget.setStyleSheet方法的典型用法代码示例。如果您正苦于以下问题:Python MatplotlibWidget.setStyleSheet方法的具体用法?Python MatplotlibWidget.setStyleSheet怎么用?Python MatplotlibWidget.setStyleSheet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在matplotlibwidget.MatplotlibWidget的用法示例。


在下文中一共展示了MatplotlibWidget.setStyleSheet方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: Ui_MainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setStyleSheet [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1024, 768)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.impulseMatplotlibwidget = MatplotlibWidget(self.centralwidget)
        self.impulseMatplotlibwidget.setGeometry(QtCore.QRect(10, 180, 491, 251))
        self.impulseMatplotlibwidget.setAutoFillBackground(False)
        self.impulseMatplotlibwidget.setStyleSheet(_fromUtf8("MatplotlibWidget{\n"
"border-width: 0px;\n"
"}\n"
""))
        self.impulseMatplotlibwidget.setObjectName(_fromUtf8("impulseMatplotlibwidget"))
        self.freqResponseMatplotlibwidget = MatplotlibWidget(self.centralwidget)
        self.freqResponseMatplotlibwidget.setGeometry(QtCore.QRect(10, 430, 1001, 301))
        font = QtGui.QFont()
        font.setPointSize(7)
        self.freqResponseMatplotlibwidget.setFont(font)
        self.freqResponseMatplotlibwidget.setStyleSheet(_fromUtf8("MatplotlibWidget{\n"
"border-width: 0px;\n"
"}"))
        self.freqResponseMatplotlibwidget.setObjectName(_fromUtf8("freqResponseMatplotlibwidget"))
        self.bandStartHorizontalSlider = QtGui.QSlider(self.centralwidget)
        self.bandStartHorizontalSlider.setGeometry(QtCore.QRect(50, 50, 161, 16))
        self.bandStartHorizontalSlider.setMaximum(50)
        self.bandStartHorizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.bandStartHorizontalSlider.setObjectName(_fromUtf8("bandStartHorizontalSlider"))
        self.bandEndHorizontalSlider = QtGui.QSlider(self.centralwidget)
        self.bandEndHorizontalSlider.setGeometry(QtCore.QRect(50, 100, 161, 16))
        self.bandEndHorizontalSlider.setMaximum(50)
        self.bandEndHorizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.bandEndHorizontalSlider.setObjectName(_fromUtf8("bandEndHorizontalSlider"))
        self.bandLevelVerticalSlider = QtGui.QSlider(self.centralwidget)
        self.bandLevelVerticalSlider.setGeometry(QtCore.QRect(230, 50, 20, 71))
        self.bandLevelVerticalSlider.setMaximum(100)
        self.bandLevelVerticalSlider.setOrientation(QtCore.Qt.Vertical)
        self.bandLevelVerticalSlider.setObjectName(_fromUtf8("bandLevelVerticalSlider"))
        self.bandStart = QtGui.QDoubleSpinBox(self.centralwidget)
        self.bandStart.setGeometry(QtCore.QRect(50, 130, 62, 22))
        self.bandStart.setDecimals(4)
        self.bandStart.setMaximum(0.5)
        self.bandStart.setSingleStep(0.01)
        self.bandStart.setObjectName(_fromUtf8("bandStart"))
        self.bandEnd = QtGui.QDoubleSpinBox(self.centralwidget)
        self.bandEnd.setGeometry(QtCore.QRect(120, 130, 62, 22))
        self.bandEnd.setDecimals(4)
        self.bandEnd.setMaximum(0.5)
        self.bandEnd.setSingleStep(0.01)
        self.bandEnd.setObjectName(_fromUtf8("bandEnd"))
        self.bandLevel = QtGui.QDoubleSpinBox(self.centralwidget)
        self.bandLevel.setGeometry(QtCore.QRect(190, 130, 62, 22))
        self.bandLevel.setDecimals(4)
        self.bandLevel.setMaximum(1.0)
        self.bandLevel.setSingleStep(0.01)
        self.bandLevel.setObjectName(_fromUtf8("bandLevel"))
        self.bandEnd_2 = QtGui.QDoubleSpinBox(self.centralwidget)
        self.bandEnd_2.setGeometry(QtCore.QRect(360, 130, 62, 22))
        self.bandEnd_2.setDecimals(4)
        self.bandEnd_2.setMaximum(0.5)
        self.bandEnd_2.setSingleStep(0.01)
        self.bandEnd_2.setObjectName(_fromUtf8("bandEnd_2"))
        self.bandEndHorizontalSlider_2 = QtGui.QSlider(self.centralwidget)
        self.bandEndHorizontalSlider_2.setGeometry(QtCore.QRect(290, 100, 161, 16))
        self.bandEndHorizontalSlider_2.setMaximum(50)
        self.bandEndHorizontalSlider_2.setOrientation(QtCore.Qt.Horizontal)
        self.bandEndHorizontalSlider_2.setObjectName(_fromUtf8("bandEndHorizontalSlider_2"))
        self.bandLevelVerticalSlider_2 = QtGui.QSlider(self.centralwidget)
        self.bandLevelVerticalSlider_2.setGeometry(QtCore.QRect(470, 50, 20, 71))
        self.bandLevelVerticalSlider_2.setMaximum(100)
        self.bandLevelVerticalSlider_2.setOrientation(QtCore.Qt.Vertical)
        self.bandLevelVerticalSlider_2.setObjectName(_fromUtf8("bandLevelVerticalSlider_2"))
        self.bandLevel_2 = QtGui.QDoubleSpinBox(self.centralwidget)
        self.bandLevel_2.setGeometry(QtCore.QRect(430, 130, 62, 22))
        self.bandLevel_2.setDecimals(4)
        self.bandLevel_2.setMaximum(1.0)
        self.bandLevel_2.setSingleStep(0.01)
        self.bandLevel_2.setObjectName(_fromUtf8("bandLevel_2"))
        self.bandStart_2 = QtGui.QDoubleSpinBox(self.centralwidget)
        self.bandStart_2.setGeometry(QtCore.QRect(290, 130, 62, 22))
        self.bandStart_2.setDecimals(4)
        self.bandStart_2.setMaximum(0.5)
        self.bandStart_2.setSingleStep(0.01)
        self.bandStart_2.setObjectName(_fromUtf8("bandStart_2"))
        self.bandStartHorizontalSlider_2 = QtGui.QSlider(self.centralwidget)
        self.bandStartHorizontalSlider_2.setGeometry(QtCore.QRect(290, 50, 161, 16))
        self.bandStartHorizontalSlider_2.setMaximum(50)
        self.bandStartHorizontalSlider_2.setOrientation(QtCore.Qt.Horizontal)
        self.bandStartHorizontalSlider_2.setObjectName(_fromUtf8("bandStartHorizontalSlider_2"))
        self.bandEnd_3 = QtGui.QDoubleSpinBox(self.centralwidget)
        self.bandEnd_3.setGeometry(QtCore.QRect(600, 130, 62, 22))
        self.bandEnd_3.setDecimals(4)
        self.bandEnd_3.setMaximum(0.5)
        self.bandEnd_3.setSingleStep(0.01)
        self.bandEnd_3.setObjectName(_fromUtf8("bandEnd_3"))
        self.bandEndHorizontalSlider_3 = QtGui.QSlider(self.centralwidget)
        self.bandEndHorizontalSlider_3.setGeometry(QtCore.QRect(530, 100, 161, 16))
        self.bandEndHorizontalSlider_3.setMaximum(50)
        self.bandEndHorizontalSlider_3.setOrientation(QtCore.Qt.Horizontal)
        self.bandEndHorizontalSlider_3.setObjectName(_fromUtf8("bandEndHorizontalSlider_3"))
#.........这里部分代码省略.........
开发者ID:jniemann66,项目名称:FIRCalculator,代码行数:103,代码来源:FIRDesigner.py


注:本文中的matplotlibwidget.MatplotlibWidget.setStyleSheet方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。