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


Python ParameterTree.setMaximumSize方法代码示例

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


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

示例1: Ui_MainWindow

# 需要导入模块: from pyqtgraph.parametertree import ParameterTree [as 别名]
# 或者: from pyqtgraph.parametertree.ParameterTree import setMaximumSize [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1314, 894)
        MainWindow.setWindowOpacity(1.0)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.spectra_splitter = QtGui.QSplitter(self.centralwidget)
        self.spectra_splitter.setOrientation(QtCore.Qt.Horizontal)
        self.spectra_splitter.setObjectName(_fromUtf8("spectra_splitter"))
        self.gridLayoutWidget = QtGui.QWidget(self.spectra_splitter)
        self.gridLayoutWidget.setObjectName(_fromUtf8("gridLayoutWidget"))
        self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget)
        self.gridLayout_2.setMargin(0)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.listView = QtGui.QListView(self.gridLayoutWidget)
        self.listView.setMaximumSize(QtCore.QSize(300, 16777215))
        self.listView.setObjectName(_fromUtf8("listView"))
        self.gridLayout_2.addWidget(self.listView, 1, 0, 1, 1)
        self.files_treeView = QtGui.QTreeView(self.gridLayoutWidget)
        self.files_treeView.setMaximumSize(QtCore.QSize(300, 16777215))
        self.files_treeView.setObjectName(_fromUtf8("files_treeView"))
        self.gridLayout_2.addWidget(self.files_treeView, 0, 0, 1, 1)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.widget = ParameterTree(self.gridLayoutWidget)
        self.widget.setMinimumSize(QtCore.QSize(250, 600))
        self.widget.setMaximumSize(QtCore.QSize(250, 16777215))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.verticalLayout.addWidget(self.widget)
        self.graphicsView_2 = GradientWidget(self.gridLayoutWidget)
        self.graphicsView_2.setMaximumSize(QtCore.QSize(16777215, 20))
        self.graphicsView_2.setObjectName(_fromUtf8("graphicsView_2"))
        self.verticalLayout.addWidget(self.graphicsView_2)
        self.gridLayout_2.addLayout(self.verticalLayout, 0, 2, 2, 1)
        self.graphicsView = PlotWidget(self.gridLayoutWidget)
        self.graphicsView.setMinimumSize(QtCore.QSize(800, 400))
        self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
        self.gridLayout_2.addWidget(self.graphicsView, 0, 1, 2, 1)
        self.verticalLayout_3.addWidget(self.spectra_splitter)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(-1, 30, 30, -1)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.load_pushButton = QtGui.QPushButton(self.centralwidget)
        self.load_pushButton.setObjectName(_fromUtf8("load_pushButton"))
        self.horizontalLayout_2.addWidget(self.load_pushButton)
        self.unload_pushButton = QtGui.QPushButton(self.centralwidget)
        self.unload_pushButton.setObjectName(_fromUtf8("unload_pushButton"))
        self.horizontalLayout_2.addWidget(self.unload_pushButton)
        self.plot_pushButton = QtGui.QPushButton(self.centralwidget)
        self.plot_pushButton.setObjectName(_fromUtf8("plot_pushButton"))
        self.horizontalLayout_2.addWidget(self.plot_pushButton)
        self.PathToFile_lineEdit = QtGui.QLineEdit(self.centralwidget)
        self.PathToFile_lineEdit.setObjectName(_fromUtf8("PathToFile_lineEdit"))
        self.horizontalLayout_2.addWidget(self.PathToFile_lineEdit)
        self.pushButton_2 = QtGui.QPushButton(self.centralwidget)
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.horizontalLayout_2.addWidget(self.pushButton_2)
        self.verticalLayout_3.addLayout(self.horizontalLayout_2)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1314, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuParameters = QtGui.QMenu(self.menubar)
        self.menuParameters.setObjectName(_fromUtf8("menuParameters"))
        self.menuAbout = QtGui.QMenu(self.menubar)
        self.menuAbout.setObjectName(_fromUtf8("menuAbout"))
        self.menuAnalysis = QtGui.QMenu(self.menubar)
        self.menuAnalysis.setObjectName(_fromUtf8("menuAnalysis"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionOpen = QtGui.QAction(MainWindow)
        self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
        self.actionQuit = QtGui.QAction(MainWindow)
        self.actionQuit.setObjectName(_fromUtf8("actionQuit"))
        self.actionEdit_All = QtGui.QAction(MainWindow)
        self.actionEdit_All.setObjectName(_fromUtf8("actionEdit_All"))
        self.actionColorization = QtGui.QAction(MainWindow)
        self.actionColorization.setObjectName(_fromUtf8("actionColorization"))
        self.actionAbout = QtGui.QAction(MainWindow)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.actionCorrections = QtGui.QAction(MainWindow)
        self.actionCorrections.setObjectName(_fromUtf8("actionCorrections"))
        self.menuFile.addAction(self.actionOpen)
        self.menuFile.addAction(self.actionQuit)
        self.menuParameters.addAction(self.actionEdit_All)
        self.menuParameters.addAction(self.actionColorization)
        self.menuAbout.addAction(self.actionAbout)
        self.menuAnalysis.addAction(self.actionCorrections)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuAnalysis.menuAction())
        self.menubar.addAction(self.menuParameters.menuAction())
        self.menubar.addAction(self.menuAbout.menuAction())

#.........这里部分代码省略.........
开发者ID:kif,项目名称:specube,代码行数:103,代码来源:main_windows_resizable_GG.py


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