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


Python DockArea.setObjectName方法代码示例

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


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

示例1: Ui_tabWidget

# 需要导入模块: from pyqtgraph.dockarea import DockArea [as 别名]
# 或者: from pyqtgraph.dockarea.DockArea import setObjectName [as 别名]
class Ui_tabWidget(object):
    def setupUi(self, tabWidget):
        tabWidget.setObjectName(_fromUtf8("tabWidget"))
        tabWidget.resize(1090, 745)
        self.configTab = QtGui.QWidget()
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.configTab.sizePolicy().hasHeightForWidth())
        self.configTab.setSizePolicy(sizePolicy)
        self.configTab.setObjectName(_fromUtf8("configTab"))
        self.gridLayout_2 = QtGui.QGridLayout(self.configTab)
        self.gridLayout_2.setMargin(0)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.splitter_2 = QtGui.QSplitter(self.configTab)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
        self.flowchartCtrlWidget = QtGui.QWidget(self.splitter_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.flowchartCtrlWidget.sizePolicy().hasHeightForWidth())
        self.flowchartCtrlWidget.setSizePolicy(sizePolicy)
        self.flowchartCtrlWidget.setObjectName(_fromUtf8("flowchartCtrlWidget"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.flowchartCtrlWidget)
        self.verticalLayout_4.setSpacing(0)
        self.verticalLayout_4.setMargin(0)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.parametersLabel = QtGui.QLabel(self.flowchartCtrlWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.parametersLabel.sizePolicy().hasHeightForWidth())
        self.parametersLabel.setSizePolicy(sizePolicy)
        self.parametersLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.parametersLabel.setObjectName(_fromUtf8("parametersLabel"))
        self.verticalLayout_4.addWidget(self.parametersLabel)
        self.widget_4 = QtGui.QWidget(self.flowchartCtrlWidget)
        self.widget_4.setObjectName(_fromUtf8("widget_4"))
        self.verticalLayout_4.addWidget(self.widget_4)
        self.flowchartWidget = QtGui.QWidget(self.splitter_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(8)
        sizePolicy.setHeightForWidth(self.flowchartWidget.sizePolicy().hasHeightForWidth())
        self.flowchartWidget.setSizePolicy(sizePolicy)
        self.flowchartWidget.setObjectName(_fromUtf8("flowchartWidget"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.flowchartWidget)
        self.verticalLayout_5.setSpacing(0)
        self.verticalLayout_5.setMargin(0)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.netFlowchartLabel = QtGui.QLabel(self.flowchartWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.netFlowchartLabel.sizePolicy().hasHeightForWidth())
        self.netFlowchartLabel.setSizePolicy(sizePolicy)
        self.netFlowchartLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.netFlowchartLabel.setObjectName(_fromUtf8("netFlowchartLabel"))
        self.verticalLayout_5.addWidget(self.netFlowchartLabel)
        self.widget_5 = QtGui.QWidget(self.flowchartWidget)
        self.widget_5.setObjectName(_fromUtf8("widget_5"))
        self.verticalLayout_5.addWidget(self.widget_5)
        self.gridLayout_2.addWidget(self.splitter_2, 0, 0, 1, 1)
        tabWidget.addTab(self.configTab, _fromUtf8(""))
        self.trainTab = QtGui.QWidget()
        self.trainTab.setObjectName(_fromUtf8("trainTab"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.trainTab)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.controlBox = QtGui.QGroupBox(self.trainTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.controlBox.sizePolicy().hasHeightForWidth())
        self.controlBox.setSizePolicy(sizePolicy)
        self.controlBox.setAlignment(QtCore.Qt.AlignCenter)
        self.controlBox.setObjectName(_fromUtf8("controlBox"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.controlBox)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.trainButton = QtGui.QPushButton(self.controlBox)
        self.trainButton.setObjectName(_fromUtf8("trainButton"))
        self.horizontalLayout_3.addWidget(self.trainButton)
        self.stopButton = QtGui.QPushButton(self.controlBox)
        self.stopButton.setObjectName(_fromUtf8("stopButton"))
        self.horizontalLayout_3.addWidget(self.stopButton)
        self.resumeButton = QtGui.QPushButton(self.controlBox)
        self.resumeButton.setObjectName(_fromUtf8("resumeButton"))
        self.horizontalLayout_3.addWidget(self.resumeButton)
        self.loadSolverButton = QtGui.QPushButton(self.controlBox)
        self.loadSolverButton.setObjectName(_fromUtf8("loadSolverButton"))
        self.horizontalLayout_3.addWidget(self.loadSolverButton)
        self.saveSolverButton = QtGui.QPushButton(self.controlBox)
        self.saveSolverButton.setObjectName(_fromUtf8("saveSolverButton"))
        self.horizontalLayout_3.addWidget(self.saveSolverButton)
        self.gridLayout.addWidget(self.controlBox, 1, 1, 1, 1)
        self.trainParamTree = ParameterTree(self.trainTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
#.........这里部分代码省略.........
开发者ID:elleryrussell,项目名称:caffeViz,代码行数:103,代码来源:MainViewTemplate.py


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