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


Python ParameterTree.setObjectName方法代码示例

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


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

示例1: Ui_Form

# 需要导入模块: from pyqtgraph.parametertree import ParameterTree [as 别名]
# 或者: from pyqtgraph.parametertree.ParameterTree import setObjectName [as 别名]
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(241, 367)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setSpacing(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(Form)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 3)
        self.itemTree = QtGui.QTreeWidget(Form)
        self.itemTree.setObjectName(_fromUtf8("itemTree"))
        self.itemTree.headerItem().setText(0, _fromUtf8("1"))
        self.itemTree.header().setVisible(False)
        self.gridLayout.addWidget(self.itemTree, 1, 0, 1, 3)
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 3)
        self.formatList = QtGui.QListWidget(Form)
        self.formatList.setObjectName(_fromUtf8("formatList"))
        self.gridLayout.addWidget(self.formatList, 3, 0, 1, 3)
        self.exportBtn = QtGui.QPushButton(Form)
        self.exportBtn.setObjectName(_fromUtf8("exportBtn"))
        self.gridLayout.addWidget(self.exportBtn, 6, 1, 1, 1)
        self.closeBtn = QtGui.QPushButton(Form)
        self.closeBtn.setObjectName(_fromUtf8("closeBtn"))
        self.gridLayout.addWidget(self.closeBtn, 6, 2, 1, 1)
        self.paramTree = ParameterTree(Form)
        self.paramTree.setObjectName(_fromUtf8("paramTree"))
        self.paramTree.headerItem().setText(0, _fromUtf8("1"))
        self.paramTree.header().setVisible(False)
        self.gridLayout.addWidget(self.paramTree, 5, 0, 1, 3)
        self.label_3 = QtGui.QLabel(Form)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 4, 0, 1, 3)
        self.copyBtn = QtGui.QPushButton(Form)
        self.copyBtn.setObjectName(_fromUtf8("copyBtn"))
        self.gridLayout.addWidget(self.copyBtn, 6, 0, 1, 1)

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

    def retranslateUi(self, Form):
        Form.setWindowTitle(QtGui.QApplication.translate("Form", "Export", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("Form", "Item to export:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("Form", "Export format", None, QtGui.QApplication.UnicodeUTF8))
        self.exportBtn.setText(QtGui.QApplication.translate("Form", "Export", None, QtGui.QApplication.UnicodeUTF8))
        self.closeBtn.setText(QtGui.QApplication.translate("Form", "Close", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("Form", "Export options", None, QtGui.QApplication.UnicodeUTF8))
        self.copyBtn.setText(QtGui.QApplication.translate("Form", "Copy", None, QtGui.QApplication.UnicodeUTF8))
开发者ID:3rdcycle,项目名称:pyqtgraph,代码行数:52,代码来源:exportDialogTemplate_pyqt.py

示例2: InstrumentLoggingSelection

# 需要导入模块: from pyqtgraph.parametertree import ParameterTree [as 别名]
# 或者: from pyqtgraph.parametertree.ParameterTree import setObjectName [as 别名]
class InstrumentLoggingSelection( SelectionUi ):
    def __init__(self, config, classdict, instancename="ExternalParameterSelection.ParametersSequence", plotNames=None, parent=None, instrumentLoggingHandler=None ):
        super(InstrumentLoggingSelection, self).__init__(config, dict(), classdict, instancename, parent)
        self.instrumentLoggingHandler = instrumentLoggingHandler
        self.current = None
        
    def setupUi(self, MainWindow):
        super(InstrumentLoggingSelection, self).setupUi(MainWindow)
        self.loggingHandlerTreeWidget = ParameterTree(self.splitter)
        self.loggingHandlerTreeWidget.setObjectName("loggingHandlerTreeWidget")
        self.loggingHandlerTreeWidget.headerItem().setText(0, "1")
        self.loggingHandlerTreeWidget.header().setVisible(False)

    def onActiveInstrumentChanged(self, modelIndex, modelIndex2 ):
        self.current = self.parameters.at(modelIndex.row()).name
        super(InstrumentLoggingSelection, self).onActiveInstrumentChanged( modelIndex, modelIndex2 )          
        self.loggingHandlerTreeWidget.setParameters( self.instrumentLoggingHandler.parameter(self.current) )
        
    def refreshParamTree(self):
        if self.current is not None:
            self.loggingHandlerTreeWidget.setParameters( self.instrumentLoggingHandler.parameter(self.current) )
开发者ID:pyIonControl,项目名称:IonControl,代码行数:23,代码来源:InstrumentLoggingSelection.py

示例3: Ui_MainWindow

# 需要导入模块: from pyqtgraph.parametertree import ParameterTree [as 别名]
# 或者: from pyqtgraph.parametertree.ParameterTree import setObjectName [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(726, 576)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setMinimumSize(QtCore.QSize(726, 576))
        MainWindow.setMaximumSize(QtCore.QSize(726, 576))
        self.centralwidget = QtGui.QWidget(MainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(0, 0, 721, 541))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab_current = QtGui.QWidget()
        self.tab_current.setObjectName(_fromUtf8("tab_current"))
        self.button_start = QtGui.QPushButton(self.tab_current)
        self.button_start.setGeometry(QtCore.QRect(10, 450, 96, 33))
        self.button_start.setObjectName(_fromUtf8("button_start"))
        self.checkBox_plotShowing = QtGui.QCheckBox(self.tab_current)
        self.checkBox_plotShowing.setGeometry(QtCore.QRect(300, 440, 121, 41))
        self.checkBox_plotShowing.setChecked(True)
        self.checkBox_plotShowing.setObjectName(_fromUtf8("checkBox_plotShowing"))
        self.horizontalLayoutWidget = QtGui.QWidget(self.tab_current)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(9, -1, 711, 441))
        self.horizontalLayoutWidget.setObjectName(_fromUtf8("horizontalLayoutWidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setSpacing(10)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.graphicsView = ParameterTree(self.horizontalLayoutWidget)
        self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
        self.verticalLayout_3.addWidget(self.graphicsView)
        self.horizontalLayout.addLayout(self.verticalLayout_3)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.label = QtGui.QLabel(self.horizontalLayoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout_2.addWidget(self.label)
        self.table_axes = QtGui.QTableWidget(self.horizontalLayoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.table_axes.sizePolicy().hasHeightForWidth())
        self.table_axes.setSizePolicy(sizePolicy)
        self.table_axes.setMaximumSize(QtCore.QSize(364, 16777215))
        self.table_axes.setFrameShape(QtGui.QFrame.Box)
        self.table_axes.setFrameShadow(QtGui.QFrame.Sunken)
        self.table_axes.setLineWidth(0)
        self.table_axes.setShowGrid(True)
        self.table_axes.setCornerButtonEnabled(True)
        self.table_axes.setRowCount(4)
        self.table_axes.setColumnCount(4)
        self.table_axes.setObjectName(_fromUtf8("table_axes"))
        item = QtGui.QTableWidgetItem()
        self.table_axes.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.table_axes.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.table_axes.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.table_axes.setHorizontalHeaderItem(3, item)
        self.table_axes.horizontalHeader().setCascadingSectionResizes(False)
        self.table_axes.horizontalHeader().setDefaultSectionSize(82)
        self.table_axes.verticalHeader().setMinimumSectionSize(40)
        self.table_axes.verticalHeader().setStretchLastSection(False)
        self.verticalLayout_2.addWidget(self.table_axes)
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label_3 = QtGui.QLabel(self.horizontalLayoutWidget)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_3)
        self.sample_size_slider = QtGui.QSlider(self.horizontalLayoutWidget)
        self.sample_size_slider.setMinimum(1)
        self.sample_size_slider.setMaximum(10)
        self.sample_size_slider.setProperty("value", 5)
        self.sample_size_slider.setOrientation(QtCore.Qt.Horizontal)
        self.sample_size_slider.setObjectName(_fromUtf8("sample_size_slider"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.sample_size_slider)
        self.label_4 = QtGui.QLabel(self.horizontalLayoutWidget)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_4)
        self.show_grid_checkbox = QtGui.QCheckBox(self.horizontalLayoutWidget)
        self.show_grid_checkbox.setText(_fromUtf8(""))
        self.show_grid_checkbox.setChecked(True)
        self.show_grid_checkbox.setObjectName(_fromUtf8("show_grid_checkbox"))
#.........这里部分代码省略.........
开发者ID:iliavolyova,项目名称:evo-clustering,代码行数:103,代码来源:gui.py

示例4: Ui_MainWindow

# 需要导入模块: from pyqtgraph.parametertree import ParameterTree [as 别名]
# 或者: from pyqtgraph.parametertree.ParameterTree import setObjectName [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(799, 683)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.centralLayout = QtGui.QGridLayout(self.centralwidget)
        self.centralLayout.setMargin(0)
        self.centralLayout.setObjectName(_fromUtf8("centralLayout"))
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 799, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuConfig = QtGui.QMenu(self.menubar)
        self.menuConfig.setObjectName(_fromUtf8("menuConfig"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.parametersDockWidget = QtGui.QDockWidget(MainWindow)
        self.parametersDockWidget.setObjectName(_fromUtf8("parametersDockWidget"))
        self.parametersDockWidgetContents = QtGui.QWidget()
        self.parametersDockWidgetContents.setObjectName(_fromUtf8("parametersDockWidgetContents"))
        self.verticalLayout = QtGui.QVBoxLayout(self.parametersDockWidgetContents)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.parametersTree = ParameterTree(self.parametersDockWidgetContents)
        self.parametersTree.setObjectName(_fromUtf8("parametersTree"))
        self.verticalLayout.addWidget(self.parametersTree)
        self.parametersDockWidget.setWidget(self.parametersDockWidgetContents)
        MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.parametersDockWidget)
        self.toolBar = QtGui.QToolBar(MainWindow)
        self.toolBar.setIconSize(QtCore.QSize(48, 48))
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionOpen = QtGui.QAction(MainWindow)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/48x48/48x48/Open_48x48.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionOpen.setIcon(icon)
        self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
        self.actionSave = QtGui.QAction(MainWindow)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/48x48/48x48/Save_48x48.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSave.setIcon(icon1)
        self.actionSave.setObjectName(_fromUtf8("actionSave"))
        self.actionExit = QtGui.QAction(MainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/48x48/48x48/Log Out_48x48.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionExit.setIcon(icon2)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionLoadConfFromFile = QtGui.QAction(MainWindow)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/48x48/48x48/Stock Index Down_48x48.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionLoadConfFromFile.setIcon(icon3)
        self.actionLoadConfFromFile.setObjectName(_fromUtf8("actionLoadConfFromFile"))
        self.actionSaveConfToFile = QtGui.QAction(MainWindow)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/48x48/48x48/Stock Index Up_48x48.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSaveConfToFile.setIcon(icon4)
        self.actionSaveConfToFile.setObjectName(_fromUtf8("actionSaveConfToFile"))
        self.menuFile.addAction(self.actionOpen)
        self.menuFile.addAction(self.actionSave)
        self.menuFile.addAction(self.actionExit)
        self.menuConfig.addSeparator()
        self.menuConfig.addAction(self.actionLoadConfFromFile)
        self.menuConfig.addAction(self.actionSaveConfToFile)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuConfig.menuAction())
        self.toolBar.addAction(self.actionOpen)
        self.toolBar.addAction(self.actionSave)
        self.toolBar.addAction(self.actionLoadConfFromFile)
        self.toolBar.addAction(self.actionSaveConfToFile)
        self.toolBar.addAction(self.actionExit)

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "SMolPhot", None))
        self.menuFile.setTitle(_translate("MainWindow", "File", None))
        self.menuConfig.setTitle(_translate("MainWindow", "Config", None))
        self.parametersDockWidget.setWindowTitle(_translate("MainWindow", "Parameters", None))
        self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar", None))
        self.actionOpen.setText(_translate("MainWindow", "Open", None))
        self.actionSave.setText(_translate("MainWindow", "Save state", None))
        self.actionExit.setText(_translate("MainWindow", "Exit", None))
        self.actionLoadConfFromFile.setText(_translate("MainWindow", "Load config", None))
        self.actionSaveConfToFile.setText(_translate("MainWindow", "Save config", None))
开发者ID:david-hoffman,项目名称:SMolPhot,代码行数:92,代码来源:Ui_MainWindow.py

示例5: Ui_MainWindow

# 需要导入模块: from pyqtgraph.parametertree import ParameterTree [as 别名]
# 或者: from pyqtgraph.parametertree.ParameterTree import setObjectName [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.setObjectName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。