本文整理汇总了Python中PyQt4.Qwt5.QwtPlot.setMaximumSize方法的典型用法代码示例。如果您正苦于以下问题:Python QwtPlot.setMaximumSize方法的具体用法?Python QwtPlot.setMaximumSize怎么用?Python QwtPlot.setMaximumSize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt4.Qwt5.QwtPlot
的用法示例。
在下文中一共展示了QwtPlot.setMaximumSize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_MainWindow
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setMaximumSize [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(686, 358)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setMargin(0)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.frame = QtGui.QFrame(self.centralwidget)
self.frame.setMaximumSize(QtCore.QSize(16777215, 40))
self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
self.frame.setFrameShadow(QtGui.QFrame.Raised)
self.frame.setObjectName(_fromUtf8("frame"))
self.horizontalLayout = QtGui.QHBoxLayout(self.frame)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.freezeCheckBox = QtGui.QCheckBox(self.frame)
self.freezeCheckBox.setObjectName(_fromUtf8("freezeCheckBox"))
self.horizontalLayout.addWidget(self.freezeCheckBox)
self.memory = QtGui.QProgressBar(self.frame)
self.memory.setStyleSheet(_fromUtf8(" QProgressBar {\n"
" border: 2px solid grey;\n"
" border-radius: 3px;\n"
" }\n"
"\n"
" QProgressBar::chunk {\n"
" background-color:rgb(32, 140, 2)\n"
" }\n"
"\n"
" QProgressBar {\n"
" border: 2px solid grey;\n"
" border-radius: 3px;\n"
" text-align: center;\n"
" }\n"
"\n"
" "))
self.memory.setProperty("value", 0)
self.memory.setTextVisible(False)
self.memory.setOrientation(QtCore.Qt.Vertical)
self.memory.setObjectName(_fromUtf8("memory"))
self.horizontalLayout.addWidget(self.memory)
self.swap = QtGui.QProgressBar(self.frame)
self.swap.setStyleSheet(_fromUtf8(" QProgressBar {\n"
" border: 2px solid grey;\n"
" border-radius: 3px;\n"
" }\n"
"\n"
" QProgressBar::chunk {\n"
" background-color:rgb(185, 0, 3)\n"
" }\n"
"\n"
" QProgressBar {\n"
" border: 2px solid grey;\n"
" border-radius: 3px;\n"
" text-align: center;\n"
" }\n"
"\n"
" "))
self.swap.setProperty("value", 0)
self.swap.setTextVisible(False)
self.swap.setOrientation(QtCore.Qt.Vertical)
self.swap.setObjectName(_fromUtf8("swap"))
self.horizontalLayout.addWidget(self.swap)
self.qwtPlotOverallCpuHist = QwtPlot(self.frame)
self.qwtPlotOverallCpuHist.setMinimumSize(QtCore.QSize(150, 0))
self.qwtPlotOverallCpuHist.setMaximumSize(QtCore.QSize(150, 50))
self.qwtPlotOverallCpuHist.setObjectName(_fromUtf8("qwtPlotOverallCpuHist"))
self.horizontalLayout.addWidget(self.qwtPlotOverallCpuHist)
self.verticalLayout.addWidget(self.frame)
self.processTreeWidget = QtGui.QTreeWidget(self.centralwidget)
self.processTreeWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
self.processTreeWidget.setColumnCount(0)
self.processTreeWidget.setObjectName(_fromUtf8("processTreeWidget"))
self.processTreeWidget.header().setCascadingSectionResizes(True)
self.processTreeWidget.header().setDefaultSectionSize(50)
self.verticalLayout.addWidget(self.processTreeWidget)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 686, 25))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setObjectName(_fromUtf8("menuFile"))
self.menuOptions = QtGui.QMenu(self.menubar)
self.menuOptions.setObjectName(_fromUtf8("menuOptions"))
self.menuView = QtGui.QMenu(self.menubar)
self.menuView.setObjectName(_fromUtf8("menuView"))
self.menuProcess = QtGui.QMenu(self.menubar)
self.menuProcess.setObjectName(_fromUtf8("menuProcess"))
self.menuSettings = QtGui.QMenu(self.menubar)
self.menuSettings.setObjectName(_fromUtf8("menuSettings"))
self.menuHelp = QtGui.QMenu(self.menubar)
self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
#.........这里部分代码省略.........