當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。