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


Python PlotWidget.setFrameShadow方法代码示例

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


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

示例1: Ui_DataPlotPanel

# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setFrameShadow [as 别名]
class Ui_DataPlotPanel(object):
    def setupUi(self, DataPlotPanel):
        DataPlotPanel.setObjectName(_fromUtf8("DataPlotPanel"))
        DataPlotPanel.resize(540, 350)
        DataPlotPanel.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.gridLayout = QtGui.QGridLayout(DataPlotPanel)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.graphicsView = PlotWidget(DataPlotPanel)
        self.graphicsView.setFrameShape(QtGui.QFrame.StyledPanel)
        self.graphicsView.setFrameShadow(QtGui.QFrame.Plain)
        self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
        self.gridLayout.addWidget(self.graphicsView, 0, 1, 1, 1)
        self.treeWidget = QtGui.QTreeWidget(DataPlotPanel)
        self.treeWidget.setMaximumSize(QtCore.QSize(200, 16777215))
        self.treeWidget.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.treeWidget.setRootIsDecorated(False)
        self.treeWidget.setItemsExpandable(False)
        self.treeWidget.setExpandsOnDoubleClick(False)
        self.treeWidget.setColumnCount(3)
        self.treeWidget.setObjectName(_fromUtf8("treeWidget"))
        self.treeWidget.header().setVisible(True)
        self.treeWidget.header().setDefaultSectionSize(80)
        self.gridLayout.addWidget(self.treeWidget, 0, 0, 1, 1)

        self.retranslateUi(DataPlotPanel)
        QtCore.QMetaObject.connectSlotsByName(DataPlotPanel)

    def retranslateUi(self, DataPlotPanel):
        DataPlotPanel.setWindowTitle(_translate("DataPlotPanel", "Form", None))
        self.treeWidget.headerItem().setText(0, _translate("DataPlotPanel", "Legend", None))
        self.treeWidget.headerItem().setText(1, _translate("DataPlotPanel", "Name", None))
        self.treeWidget.headerItem().setText(2, _translate("DataPlotPanel", "Value", None))
开发者ID:LithiumNL,项目名称:AeroQuadConfiguratorPyQt,代码行数:34,代码来源:DataPlotPanel.py

示例2: Ui_plotWindow

# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setFrameShadow [as 别名]
class Ui_plotWindow(object):
    def setupUi(self, plotWindow):
        plotWindow.setObjectName(_fromUtf8("plotWindow"))
        plotWindow.resize(540, 350)
        plotWindow.setMaximumSize(QtCore.QSize(16777215, 16777215))

        self.gridLayout = QtGui.QGridLayout(plotWindow)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))


        self.graphicsView = PlotWidget(plotWindow)

        self.graphicsView.hideButtons()
        self.graphicsView.showGrid(True, True)
        self.graphicsView.setMenuEnabled(False)
        self.graphicsView.setMouseEnabled(False, False)

        self.graphicsView.setFrameShadow(QtGui.QFrame.Plain)
        self.graphicsView.setFrameShape(QtGui.QFrame.StyledPanel)
        self.graphicsView.setObjectName(_fromUtf8("graphicsView"))

        self.gridLayout.addWidget(self.graphicsView, 0, 1, 1, 1)


        self.treeWidget = QtGui.QTreeWidget(plotWindow)
        self.treeWidget.setMaximumSize(QtCore.QSize(200, 16777215))
        self.treeWidget.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.treeWidget.setRootIsDecorated(False)
        self.treeWidget.setItemsExpandable(False)
        self.treeWidget.setExpandsOnDoubleClick(False)
        self.treeWidget.setColumnCount(3)
        self.treeWidget.setObjectName(_fromUtf8("treeWidget"))
        self.treeWidget.header().setVisible(True)
        self.treeWidget.header().setDefaultSectionSize(80)

        self.gridLayout.addWidget(self.treeWidget, 0, 0, 1, 1)

        self.retranslateUi(plotWindow)
        QtCore.QMetaObject.connectSlotsByName(plotWindow)

    def retranslateUi(self, plotWindow):
        plotWindow.setWindowTitle(QtGui.QApplication.translate("plotWindow", "Form", None, QtGui.QApplication.UnicodeUTF8))
        self.treeWidget.headerItem().setText(0, QtGui.QApplication.translate("plotWindow", "Legend", None, QtGui.QApplication.UnicodeUTF8))
        self.treeWidget.headerItem().setText(1, QtGui.QApplication.translate("plotWindow", "Name", None, QtGui.QApplication.UnicodeUTF8))
        self.treeWidget.headerItem().setText(2, QtGui.QApplication.translate("plotWindow", "Value", None, QtGui.QApplication.UnicodeUTF8))
开发者ID:CNCBASHER,项目名称:AeroQuadConfiguratorPyQt,代码行数:47,代码来源:dataPlotWindow.py

示例3: Ui_MainWidget

# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setFrameShadow [as 别名]
class Ui_MainWidget(object):
    def setupUi(self, MainWidget):
        MainWidget.setObjectName(_fromUtf8("MainWidget"))
        MainWidget.resize(791, 488)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWidget.sizePolicy().hasHeightForWidth())
        MainWidget.setSizePolicy(sizePolicy)
        MainWidget.setMinimumSize(QtCore.QSize(170, 0))
        MainWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        MainWidget.setStyleSheet(_fromUtf8("background-color: rgb(0, 0, 0);\n"
"color: rgb(255, 255, 255);\n"
"font: 10pt \"Droid Sans Mono\";"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(MainWidget)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.plotVertLayout = QtGui.QVBoxLayout()
        self.plotVertLayout.setObjectName(_fromUtf8("plotVertLayout"))
        self.vitalsPlot = PlotWidget(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.vitalsPlot.sizePolicy().hasHeightForWidth())
        self.vitalsPlot.setSizePolicy(sizePolicy)
        self.vitalsPlot.setMinimumSize(QtCore.QSize(150, 8))
        self.vitalsPlot.setStyleSheet(_fromUtf8("background-color: rgb(170, 0, 0);"))
        self.vitalsPlot.setFrameShape(QtGui.QFrame.NoFrame)
        self.vitalsPlot.setFrameShadow(QtGui.QFrame.Plain)
        self.vitalsPlot.setLineWidth(0)
        self.vitalsPlot.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.vitalsPlot.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.vitalsPlot.setObjectName(_fromUtf8("vitalsPlot"))
        self.plotVertLayout.addWidget(self.vitalsPlot)
        self.slowPlotHorizLayout = QtGui.QHBoxLayout()
        self.slowPlotHorizLayout.setObjectName(_fromUtf8("slowPlotHorizLayout"))
        self.textBrowser = QtGui.QTextBrowser(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.textBrowser.sizePolicy().hasHeightForWidth())
        self.textBrowser.setSizePolicy(sizePolicy)
        self.textBrowser.setMinimumSize(QtCore.QSize(136, 30))
        self.textBrowser.setMaximumSize(QtCore.QSize(136, 30))
        self.textBrowser.setStyleSheet(_fromUtf8("font: 9pt \"Droid Sans\";"))
        self.textBrowser.setFrameShape(QtGui.QFrame.NoFrame)
        self.textBrowser.setFrameShadow(QtGui.QFrame.Plain)
        self.textBrowser.setLineWidth(0)
        self.textBrowser.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.textBrowser.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.textBrowser.setObjectName(_fromUtf8("textBrowser"))
        self.slowPlotHorizLayout.addWidget(self.textBrowser)
        self.slowUpdatePeriod = QtGui.QDoubleSpinBox(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.slowUpdatePeriod.sizePolicy().hasHeightForWidth())
        self.slowUpdatePeriod.setSizePolicy(sizePolicy)
        self.slowUpdatePeriod.setMinimumSize(QtCore.QSize(150, 0))
        self.slowUpdatePeriod.setMaximumSize(QtCore.QSize(150, 16777215))
        self.slowUpdatePeriod.setStyleSheet(_fromUtf8("background-color: rgb(255,255,255);\n"
"font: 9pt \"Droid Sans\";\n"
"color: rgb(0, 0, 0);"))
        self.slowUpdatePeriod.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.slowUpdatePeriod.setDecimals(1)
        self.slowUpdatePeriod.setMinimum(0.1)
        self.slowUpdatePeriod.setMaximum(1000000000.0)
        self.slowUpdatePeriod.setProperty("value", 1.0)
        self.slowUpdatePeriod.setObjectName(_fromUtf8("slowUpdatePeriod"))
        self.slowPlotHorizLayout.addWidget(self.slowUpdatePeriod)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.slowPlotHorizLayout.addItem(spacerItem)
        self.plotVertLayout.addLayout(self.slowPlotHorizLayout)
        self.ventilationPlot = PlotWidget(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ventilationPlot.sizePolicy().hasHeightForWidth())
        self.ventilationPlot.setSizePolicy(sizePolicy)
        self.ventilationPlot.setMinimumSize(QtCore.QSize(150, 10))
        self.ventilationPlot.setStyleSheet(_fromUtf8("background-color: rgb(255, 0, 255);"))
        self.ventilationPlot.setFrameShape(QtGui.QFrame.NoFrame)
        self.ventilationPlot.setFrameShadow(QtGui.QFrame.Plain)
        self.ventilationPlot.setLineWidth(0)
        self.ventilationPlot.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.ventilationPlot.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.ventilationPlot.setObjectName(_fromUtf8("pressurePlot"))
        self.plotVertLayout.addWidget(self.ventilationPlot)
        self.ecgPlot = PlotWidget(MainWidget)
        self.ecgPlot.setMinimumSize(QtCore.QSize(150, 0))
        self.ecgPlot.setStyleSheet(_fromUtf8("background-color: rgb(0, 170, 0);"))
        self.ecgPlot.setFrameShape(QtGui.QFrame.NoFrame)
        self.ecgPlot.setFrameShadow(QtGui.QFrame.Plain)
        self.ecgPlot.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.ecgPlot.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.ecgPlot.setObjectName(_fromUtf8("ecgPlot"))
        self.plotVertLayout.addWidget(self.ecgPlot)
        self.fastPlotHorizLayout = QtGui.QHBoxLayout()
        self.fastPlotHorizLayout.setObjectName(_fromUtf8("fastPlotHorizLayout"))
#.........这里部分代码省略.........
开发者ID:ScottHaileRobertson,项目名称:DukeVentilator,代码行数:103,代码来源:mainwidget.py

示例4: Ui_MainWindow

# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setFrameShadow [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(993, 692)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setMargin(10)
        self.verticalLayout_2.setSpacing(10)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.frame_4 = QtGui.QFrame(self.centralwidget)
        self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_4.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_4.setObjectName(_fromUtf8("frame_4"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.frame_4)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_3 = QtGui.QLabel(self.frame_4)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout.addWidget(self.label_3)
        self.label_4 = QtGui.QLabel(self.frame_4)
        self.label_4.setEnabled(True)
        self.label_4.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout.addWidget(self.label_4)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.btnSite = QtGui.QPushButton(self.frame_4)
        self.btnSite.setStyleSheet(_fromUtf8("color: rgb(0, 0, 255);"))
        self.btnSite.setCheckable(False)
        self.btnSite.setFlat(True)
        self.btnSite.setObjectName(_fromUtf8("btnSite"))
        self.horizontalLayout.addWidget(self.btnSite)
        self.verticalLayout_2.addWidget(self.frame_4)
        self.frame_5 = QtGui.QFrame(self.centralwidget)
        self.frame_5.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_5.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_5.setObjectName(_fromUtf8("frame_5"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.frame_5)
        self.horizontalLayout_3.setMargin(0)
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.lblDevice = QtGui.QLabel(self.frame_5)
        self.lblDevice.setEnabled(False)
        self.lblDevice.setObjectName(_fromUtf8("lblDevice"))
        self.horizontalLayout_3.addWidget(self.lblDevice)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.verticalLayout_2.addWidget(self.frame_5)
        self.frame = QtGui.QFrame(self.centralwidget)
        self.frame.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame.setFrameShadow(QtGui.QFrame.Plain)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.verticalLayout = QtGui.QVBoxLayout(self.frame)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setSpacing(10)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.frame_2 = QtGui.QFrame(self.frame)
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName(_fromUtf8("frame_2"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame_2)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.chkInvert = QtGui.QCheckBox(self.frame_2)
        self.chkInvert.setObjectName(_fromUtf8("chkInvert"))
        self.horizontalLayout_2.addWidget(self.chkInvert)
        self.chkAutoscale = QtGui.QCheckBox(self.frame_2)
        self.chkAutoscale.setChecked(True)
        self.chkAutoscale.setObjectName(_fromUtf8("chkAutoscale"))
        self.horizontalLayout_2.addWidget(self.chkAutoscale)
        self.line = QtGui.QFrame(self.frame_2)
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.horizontalLayout_2.addWidget(self.line)
        self.label_2 = QtGui.QLabel(self.frame_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_2.addWidget(self.label_2)
        self.spinLowpass = QtGui.QSpinBox(self.frame_2)
        self.spinLowpass.setPrefix(_fromUtf8(""))
        self.spinLowpass.setMinimum(0)
        self.spinLowpass.setMaximum(999999)
        self.spinLowpass.setSingleStep(1)
        self.spinLowpass.setProperty("value", 45)
        self.spinLowpass.setObjectName(_fromUtf8("spinLowpass"))
        self.horizontalLayout_2.addWidget(self.spinLowpass)
        self.label_5 = QtGui.QLabel(self.frame_2)
#.........这里部分代码省略.........
开发者ID:godzivan,项目名称:diyECG-1opAmp,代码行数:103,代码来源:ui_main.py


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