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


Python GraphicsLayoutWidget.sizePolicy方法代码示例

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


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

示例1: Ui_RecordingViewerWidget

# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import sizePolicy [as 别名]
class Ui_RecordingViewerWidget(object):
    def setupUi(self, RecordingViewerWidget):
        RecordingViewerWidget.setObjectName("RecordingViewerWidget")
        RecordingViewerWidget.resize(489, 402)
        self.gridLayout_2 = QtWidgets.QGridLayout(RecordingViewerWidget)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.titleLabel = QtWidgets.QLabel(RecordingViewerWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.titleLabel.sizePolicy().hasHeightForWidth())
        self.titleLabel.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.titleLabel.setFont(font)
        self.titleLabel.setText("")
        self.titleLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.titleLabel.setObjectName("titleLabel")
        self.verticalLayout.addWidget(self.titleLabel)
        self.plotWidget = GraphicsLayoutWidget(RecordingViewerWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.plotWidget.sizePolicy().hasHeightForWidth())
        self.plotWidget.setSizePolicy(sizePolicy)
        self.plotWidget.setObjectName("plotWidget")
        self.verticalLayout.addWidget(self.plotWidget)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.previousButton = QtWidgets.QPushButton(RecordingViewerWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.previousButton.sizePolicy().hasHeightForWidth())
        self.previousButton.setSizePolicy(sizePolicy)
        icon = QtGui.QIcon.fromTheme("go-previous")
        self.previousButton.setIcon(icon)
        self.previousButton.setObjectName("previousButton")
        self.horizontalLayout.addWidget(self.previousButton)
        self.nextButton = QtWidgets.QPushButton(RecordingViewerWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.nextButton.sizePolicy().hasHeightForWidth())
        self.nextButton.setSizePolicy(sizePolicy)
        icon = QtGui.QIcon.fromTheme("go-next")
        self.nextButton.setIcon(icon)
        self.nextButton.setObjectName("nextButton")
        self.horizontalLayout.addWidget(self.nextButton)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.gridLayout_2.addLayout(self.verticalLayout, 0, 0, 1, 1)
        self.groupBox = QtWidgets.QGroupBox(RecordingViewerWidget)
        self.groupBox.setMinimumSize(QtCore.QSize(250, 0))
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.sessionBrowser = SessionBrowser(self.groupBox)
        self.sessionBrowser.setObjectName("sessionBrowser")
        self.gridLayout.addWidget(self.sessionBrowser, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox, 0, 1, 1, 1)

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

    def retranslateUi(self, RecordingViewerWidget):
        _translate = QtCore.QCoreApplication.translate
        RecordingViewerWidget.setWindowTitle(_translate("RecordingViewerWidget", "Form"))
        self.previousButton.setText(_translate("RecordingViewerWidget", "Prev"))
        self.nextButton.setText(_translate("RecordingViewerWidget", "Next"))
        self.groupBox.setTitle(_translate("RecordingViewerWidget", "Sessions"))
开发者ID:ixjlyons,项目名称:pygesture,代码行数:76,代码来源:recording_viewer_template.py

示例2: Ui_MainWindow

# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import sizePolicy [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1118, 728)
        MainWindow.setMinimumSize(QtCore.QSize(256, 256))
        MainWindow.setMaximumSize(QtCore.QSize(1118, 16777215))
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.histogram_groupBox_2 = QtWidgets.QGroupBox(self.centralwidget)
        self.histogram_groupBox_2.setGeometry(QtCore.QRect(440, 520, 671, 171))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.histogram_groupBox_2.sizePolicy().hasHeightForWidth())
        self.histogram_groupBox_2.setSizePolicy(sizePolicy)
        self.histogram_groupBox_2.setMinimumSize(QtCore.QSize(100, 100))
        self.histogram_groupBox_2.setMaximumSize(QtCore.QSize(700, 283))
        self.histogram_groupBox_2.setObjectName("histogram_groupBox_2")
        self.logOutput = QtWidgets.QTextEdit(self.histogram_groupBox_2)
        self.logOutput.setGeometry(QtCore.QRect(10, 30, 651, 131))
        font = QtGui.QFont()
        font.setFamily("Courier")
        self.logOutput.setFont(font)
        self.logOutput.setObjectName("logOutput")
        self.imageData_groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.imageData_groupBox.setGeometry(QtCore.QRect(10, 0, 1100, 312))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.imageData_groupBox.sizePolicy().hasHeightForWidth())
        self.imageData_groupBox.setSizePolicy(sizePolicy)
        self.imageData_groupBox.setMinimumSize(QtCore.QSize(1100, 100))
        self.imageData_groupBox.setMaximumSize(QtCore.QSize(1100, 312))
        self.imageData_groupBox.setObjectName("imageData_groupBox")
        self.label = QtWidgets.QLabel(self.imageData_groupBox)
        self.label.setGeometry(QtCore.QRect(10, 520, 521, 16))
        self.label.setWordWrap(True)
        self.label.setObjectName("label")
        self.layoutWidget = QtWidgets.QWidget(self.imageData_groupBox)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 20, 1091, 291))
        self.layoutWidget.setObjectName("layoutWidget")
        self.largeimage_horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget)
        self.largeimage_horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetMinAndMaxSize)
        self.largeimage_horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.largeimage_horizontalLayout.setObjectName("largeimage_horizontalLayout")
        self.main_graphicsView = GraphicsLayoutWidget(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.main_graphicsView.sizePolicy().hasHeightForWidth())
        self.main_graphicsView.setSizePolicy(sizePolicy)
        self.main_graphicsView.setMinimumSize(QtCore.QSize(778, 256))
        self.main_graphicsView.setMaximumSize(QtCore.QSize(778, 256))
        self.main_graphicsView.setSizeIncrement(QtCore.QSize(1, 1))
        self.main_graphicsView.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.main_graphicsView.setAlignment(QtCore.Qt.AlignCenter)
        self.main_graphicsView.setObjectName("main_graphicsView")
        self.largeimage_horizontalLayout.addWidget(self.main_graphicsView)
        self.graphicsView_colorbar = GraphicsView(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.graphicsView_colorbar.sizePolicy().hasHeightForWidth())
        self.graphicsView_colorbar.setSizePolicy(sizePolicy)
        self.graphicsView_colorbar.setMinimumSize(QtCore.QSize(30, 128))
        self.graphicsView_colorbar.setMaximumSize(QtCore.QSize(25, 256))
        self.graphicsView_colorbar.setSizeIncrement(QtCore.QSize(1, 1))
        self.graphicsView_colorbar.setObjectName("graphicsView_colorbar")
        self.largeimage_horizontalLayout.addWidget(self.graphicsView_colorbar)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
        self.verticalLayout_3.setContentsMargins(-1, 5, -1, 5)
        self.verticalLayout_3.setSpacing(0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.dispmax_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.layoutWidget)
        self.dispmax_doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.dispmax_doubleSpinBox.setDecimals(3)
        self.dispmax_doubleSpinBox.setObjectName("dispmax_doubleSpinBox")
        self.verticalLayout_3.addWidget(self.dispmax_doubleSpinBox)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)
        self.resetDispLimits_Button = QtWidgets.QPushButton(self.layoutWidget)
        self.resetDispLimits_Button.setObjectName("resetDispLimits_Button")
        self.verticalLayout_3.addWidget(self.resetDispLimits_Button)
        self.resetDispSmart_Button = QtWidgets.QPushButton(self.layoutWidget)
        self.resetDispSmart_Button.setObjectName("resetDispSmart_Button")
        self.verticalLayout_3.addWidget(self.resetDispSmart_Button)
        self.saveDisp_Button = QtWidgets.QPushButton(self.layoutWidget)
        self.saveDisp_Button.setObjectName("saveDisp_Button")
        self.verticalLayout_3.addWidget(self.saveDisp_Button)
        self.setMask_Button = QtWidgets.QPushButton(self.layoutWidget)
        self.setMask_Button.setObjectName("setMask_Button")
        self.verticalLayout_3.addWidget(self.setMask_Button)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem1)
        self.dispmin_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.layoutWidget)
        self.dispmin_doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.dispmin_doubleSpinBox.setDecimals(3)
        self.dispmin_doubleSpinBox.setObjectName("dispmin_doubleSpinBox")
        self.verticalLayout_3.addWidget(self.dispmin_doubleSpinBox)
#.........这里部分代码省略.........
开发者ID:bbfrederick,项目名称:rapidtide,代码行数:103,代码来源:tidepoolTemplate_qt5.py

示例3: Ui_QSpectrumAnalyzerMainWindow

# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import sizePolicy [as 别名]
class Ui_QSpectrumAnalyzerMainWindow(object):
    def setupUi(self, QSpectrumAnalyzerMainWindow):
        QSpectrumAnalyzerMainWindow.setObjectName(_fromUtf8("QSpectrumAnalyzerMainWindow"))
        QSpectrumAnalyzerMainWindow.resize(1100, 731)
        self.centralwidget = QtGui.QWidget(QSpectrumAnalyzerMainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.plotSplitter = QtGui.QSplitter(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.plotSplitter.sizePolicy().hasHeightForWidth())
        self.plotSplitter.setSizePolicy(sizePolicy)
        self.plotSplitter.setOrientation(QtCore.Qt.Vertical)
        self.plotSplitter.setObjectName(_fromUtf8("plotSplitter"))
        self.mainPlotLayout = GraphicsLayoutWidget(self.plotSplitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mainPlotLayout.sizePolicy().hasHeightForWidth())
        self.mainPlotLayout.setSizePolicy(sizePolicy)
        self.mainPlotLayout.setObjectName(_fromUtf8("mainPlotLayout"))
        self.waterfallPlotLayout = GraphicsLayoutWidget(self.plotSplitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.waterfallPlotLayout.sizePolicy().hasHeightForWidth())
        self.waterfallPlotLayout.setSizePolicy(sizePolicy)
        self.waterfallPlotLayout.setObjectName(_fromUtf8("waterfallPlotLayout"))
        self.horizontalLayout.addWidget(self.plotSplitter)
        QSpectrumAnalyzerMainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(QSpectrumAnalyzerMainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1100, 30))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menu_File = QtGui.QMenu(self.menubar)
        self.menu_File.setObjectName(_fromUtf8("menu_File"))
        self.menu_Help = QtGui.QMenu(self.menubar)
        self.menu_Help.setObjectName(_fromUtf8("menu_Help"))
        QSpectrumAnalyzerMainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(QSpectrumAnalyzerMainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        QSpectrumAnalyzerMainWindow.setStatusBar(self.statusbar)
        self.dockWidget = QtGui.QDockWidget(QSpectrumAnalyzerMainWindow)
        self.dockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable)
        self.dockWidget.setObjectName(_fromUtf8("dockWidget"))
        self.dockWidgetContents = QtGui.QWidget()
        self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.dockWidgetContents)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.groupBox_2 = QtGui.QGroupBox(self.dockWidgetContents)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayout = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.startButton = QtGui.QPushButton(self.groupBox_2)
        self.startButton.setObjectName(_fromUtf8("startButton"))
        self.gridLayout.addWidget(self.startButton, 0, 0, 1, 1)
        self.stopButton = QtGui.QPushButton(self.groupBox_2)
        self.stopButton.setObjectName(_fromUtf8("stopButton"))
        self.gridLayout.addWidget(self.stopButton, 0, 1, 1, 1)
        self.singleShotButton = QtGui.QPushButton(self.groupBox_2)
        self.singleShotButton.setObjectName(_fromUtf8("singleShotButton"))
        self.gridLayout.addWidget(self.singleShotButton, 1, 0, 1, 2)
        self.verticalLayout_3.addWidget(self.groupBox_2)
        self.groupBox = QtGui.QGroupBox(self.dockWidgetContents)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout.addWidget(self.label_2)
        self.startFreqSpinBox = QtGui.QDoubleSpinBox(self.groupBox)
        self.startFreqSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.startFreqSpinBox.setDecimals(3)
        self.startFreqSpinBox.setMinimum(24.0)
        self.startFreqSpinBox.setMaximum(1766.0)
        self.startFreqSpinBox.setProperty("value", 87.0)
        self.startFreqSpinBox.setObjectName(_fromUtf8("startFreqSpinBox"))
        self.verticalLayout.addWidget(self.startFreqSpinBox)
        self.label_3 = QtGui.QLabel(self.groupBox)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout.addWidget(self.label_3)
        self.stopFreqSpinBox = QtGui.QDoubleSpinBox(self.groupBox)
        self.stopFreqSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.stopFreqSpinBox.setDecimals(3)
        self.stopFreqSpinBox.setMinimum(24.0)
        self.stopFreqSpinBox.setMaximum(1766.0)
        self.stopFreqSpinBox.setProperty("value", 108.0)
        self.stopFreqSpinBox.setObjectName(_fromUtf8("stopFreqSpinBox"))
        self.verticalLayout.addWidget(self.stopFreqSpinBox)
        self.label = QtGui.QLabel(self.groupBox)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.binSizeSpinBox = QtGui.QDoubleSpinBox(self.groupBox)
        self.binSizeSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.binSizeSpinBox.setDecimals(3)
        self.binSizeSpinBox.setMaximum(2800.0)
        self.binSizeSpinBox.setProperty("value", 10.0)
        self.binSizeSpinBox.setObjectName(_fromUtf8("binSizeSpinBox"))
        self.verticalLayout.addWidget(self.binSizeSpinBox)
#.........这里部分代码省略.........
开发者ID:bkerler,项目名称:qspectrumanalyzer,代码行数:103,代码来源:ui_qspectrumanalyzer.py

示例4: Ui_SliceWidget

# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import sizePolicy [as 别名]
class Ui_SliceWidget(object):
    def setupUi(self, SliceWidget):
        SliceWidget.setObjectName("SliceWidget")
        SliceWidget.resize(554, 642)
        self.gridLayout = QtWidgets.QGridLayout(SliceWidget)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setSpacing(0)
        self.gridLayout.setObjectName("gridLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.graphicsView = GraphicsLayoutWidget(SliceWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.graphicsView.sizePolicy().hasHeightForWidth())
        self.graphicsView.setSizePolicy(sizePolicy)
        self.graphicsView.setObjectName("graphicsView")
        self.verticalLayout.addWidget(self.graphicsView)
        self.controlsWidget = QtWidgets.QWidget(SliceWidget)
        self.controlsWidget.setMaximumSize(QtCore.QSize(16777215, 25))
        self.controlsWidget.setObjectName("controlsWidget")
        self.layout_index_slider = QtWidgets.QHBoxLayout(self.controlsWidget)
        self.layout_index_slider.setContentsMargins(20, 2, 15, 2)
        self.layout_index_slider.setObjectName("layout_index_slider")
        self.labelImageSeriesNumber = QtWidgets.QLabel(self.controlsWidget)
        self.labelImageSeriesNumber.setText("")
        self.labelImageSeriesNumber.setObjectName("labelImageSeriesNumber")
        self.layout_index_slider.addWidget(self.labelImageSeriesNumber)
        self.seriesSlider = QtWidgets.QSlider(self.controlsWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.seriesSlider.sizePolicy().hasHeightForWidth())
        self.seriesSlider.setSizePolicy(sizePolicy)
        self.seriesSlider.setMinimumSize(QtCore.QSize(200, 0))
        self.seriesSlider.setOrientation(QtCore.Qt.Horizontal)
        self.seriesSlider.setInvertedAppearance(False)
        self.seriesSlider.setInvertedControls(False)
        self.seriesSlider.setTickPosition(QtWidgets.QSlider.TicksAbove)
        self.seriesSlider.setTickInterval(1)
        self.seriesSlider.setObjectName("seriesSlider")
        self.layout_index_slider.addWidget(self.seriesSlider)
        self.labelSliceNumber = QtWidgets.QLabel(self.controlsWidget)
        self.labelSliceNumber.setText("")
        self.labelSliceNumber.setObjectName("labelSliceNumber")
        self.layout_index_slider.addWidget(self.labelSliceNumber)
        self.sliderSlice = QtWidgets.QSlider(self.controlsWidget)
        self.sliderSlice.setMaximumSize(QtCore.QSize(16777215, 10))
        self.sliderSlice.setOrientation(QtCore.Qt.Horizontal)
        self.sliderSlice.setTickInterval(0)
        self.sliderSlice.setObjectName("sliderSlice")
        self.layout_index_slider.addWidget(self.sliderSlice)
        self.pushButtonScrollLeft = QtWidgets.QPushButton(self.controlsWidget)
        self.pushButtonScrollLeft.setStyleSheet("border:none")
        self.pushButtonScrollLeft.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/scroll_arrow_left.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButtonScrollLeft.setIcon(icon)
        self.pushButtonScrollLeft.setIconSize(QtCore.QSize(15, 15))
        self.pushButtonScrollLeft.setObjectName("pushButtonScrollLeft")
        self.layout_index_slider.addWidget(self.pushButtonScrollLeft)
        self.pushButtonScrollRight = QtWidgets.QPushButton(self.controlsWidget)
        self.pushButtonScrollRight.setStyleSheet("border:none")
        self.pushButtonScrollRight.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/icons/scroll_arrow_right.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        icon1.addPixmap(QtGui.QPixmap(":/icons/scroll_arrow_right_active.png"), QtGui.QIcon.Active, QtGui.QIcon.On)
        self.pushButtonScrollRight.setIcon(icon1)
        self.pushButtonScrollRight.setIconSize(QtCore.QSize(15, 15))
        self.pushButtonScrollRight.setObjectName("pushButtonScrollRight")
        self.layout_index_slider.addWidget(self.pushButtonScrollRight)
        self.pushButtonManageVolumes = QtWidgets.QPushButton(self.controlsWidget)
        self.pushButtonManageVolumes.setStyleSheet("border:none")
        self.pushButtonManageVolumes.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/icons/settings.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButtonManageVolumes.setIcon(icon2)
        self.pushButtonManageVolumes.setIconSize(QtCore.QSize(15, 15))
        self.pushButtonManageVolumes.setFlat(False)
        self.pushButtonManageVolumes.setObjectName("pushButtonManageVolumes")
        self.layout_index_slider.addWidget(self.pushButtonManageVolumes)
        self.verticalLayout.addWidget(self.controlsWidget)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)

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

    def retranslateUi(self, SliceWidget):
        _translate = QtCore.QCoreApplication.translate
        SliceWidget.setWindowTitle(_translate("SliceWidget", "Form"))
        self.labelSliceNumber.setAccessibleName(_translate("SliceWidget", "sliceNumber"))
开发者ID:mpi2,项目名称:vpv,代码行数:97,代码来源:ui_slice_widget.py

示例5: Ui_MainWindow

# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import sizePolicy [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.setEnabled(True)
        MainWindow.resize(1201, 818)
        MainWindow.setMinimumSize(QtCore.QSize(1024, 700))
        self.centralwidget = QtGui.QWidget(MainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.select_file_button = QtGui.QPushButton(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.select_file_button.setFont(font)
        self.select_file_button.setObjectName(_fromUtf8("select_file_button"))
        self.horizontalLayout.addWidget(self.select_file_button)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.central_tab = QtGui.QTabWidget(self.centralwidget)
        self.central_tab.setObjectName(_fromUtf8("central_tab"))
        self.waveform_tab = QtGui.QWidget()
        self.waveform_tab.setObjectName(_fromUtf8("waveform_tab"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.waveform_tab)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.group_by_network_check_box = QtGui.QCheckBox(self.waveform_tab)
        self.group_by_network_check_box.setChecked(True)
        self.group_by_network_check_box.setObjectName(_fromUtf8("group_by_network_check_box"))
        self.verticalLayout_3.addWidget(self.group_by_network_check_box)
        self.station_view = StationTreeWidget(self.waveform_tab)
        self.station_view.setAnimated(False)
        self.station_view.setHeaderHidden(True)
        self.station_view.setObjectName(_fromUtf8("station_view"))
        self.station_view.headerItem().setText(0, _fromUtf8("1"))
        self.verticalLayout_3.addWidget(self.station_view)
        self.web_view = QtWebKit.QWebView(self.waveform_tab)
        self.web_view.setUrl(QtCore.QUrl(_fromUtf8("about:blank")))
        self.web_view.setObjectName(_fromUtf8("web_view"))
        self.verticalLayout_3.addWidget(self.web_view)
        self.verticalLayout_3.setStretch(0, 1)
        self.verticalLayout_3.setStretch(1, 10)
        self.verticalLayout_3.setStretch(2, 4)
        self.horizontalLayout_3.addLayout(self.verticalLayout_3)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.reset_view_push_button = QtGui.QPushButton(self.waveform_tab)
        self.reset_view_push_button.setEnabled(False)
        self.reset_view_push_button.setObjectName(_fromUtf8("reset_view_push_button"))
        self.horizontalLayout_2.addWidget(self.reset_view_push_button)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.detrend_and_demean_check_box = QtGui.QCheckBox(self.waveform_tab)
        self.detrend_and_demean_check_box.setObjectName(_fromUtf8("detrend_and_demean_check_box"))
        self.horizontalLayout_2.addWidget(self.detrend_and_demean_check_box)
        self.normalize_check_box = QtGui.QCheckBox(self.waveform_tab)
        self.normalize_check_box.setObjectName(_fromUtf8("normalize_check_box"))
        self.horizontalLayout_2.addWidget(self.normalize_check_box)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem2)
        self.references_push_button = QtGui.QPushButton(self.waveform_tab)
        self.references_push_button.setObjectName(_fromUtf8("references_push_button"))
        self.horizontalLayout_2.addWidget(self.references_push_button)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.graph = GraphicsLayoutWidget(self.waveform_tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.graph.sizePolicy().hasHeightForWidth())
        self.graph.setSizePolicy(sizePolicy)
        self.graph.setMouseTracking(False)
        self.graph.setToolTip(_fromUtf8(""))
        self.graph.setObjectName(_fromUtf8("graph"))
        self.verticalLayout_2.addWidget(self.graph)
        self.horizontalLayout_3.addLayout(self.verticalLayout_2)
        self.horizontalLayout_3.setStretch(0, 3)
        self.horizontalLayout_3.setStretch(1, 10)
        self.central_tab.addTab(self.waveform_tab, _fromUtf8("Waveforms"))
        self.auxiliary_data_tab = QtGui.QWidget()
        self.auxiliary_data_tab.setObjectName(_fromUtf8("auxiliary_data_tab"))
        self.horizontalLayout_11 = QtGui.QHBoxLayout(self.auxiliary_data_tab)
        self.horizontalLayout_11.setObjectName(_fromUtf8("horizontalLayout_11"))
        self.auxiliary_data_tree_view = QtGui.QTreeWidget(self.auxiliary_data_tab)
        self.auxiliary_data_tree_view.setObjectName(_fromUtf8("auxiliary_data_tree_view"))
        self.auxiliary_data_tree_view.headerItem().setText(0, _fromUtf8("1"))
        self.auxiliary_data_tree_view.header().setVisible(False)
        self.horizontalLayout_11.addWidget(self.auxiliary_data_tree_view)
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.auxiliary_data_stacked_widget = QtGui.QStackedWidget(self.auxiliary_data_tab)
#.........这里部分代码省略.........
开发者ID:SeismicData,项目名称:asdf_sextant,代码行数:103,代码来源:asdf_sextant_window.py

示例6: Ui_QSpectrumAnalyzerMainWindow

# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import sizePolicy [as 别名]
class Ui_QSpectrumAnalyzerMainWindow(object):
    def setupUi(self, QSpectrumAnalyzerMainWindow):
        QSpectrumAnalyzerMainWindow.setObjectName(_fromUtf8("QSpectrumAnalyzerMainWindow"))
        QSpectrumAnalyzerMainWindow.resize(1200, 810)
        self.centralwidget = QtGui.QWidget(QSpectrumAnalyzerMainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.plotSplitter = QtGui.QSplitter(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.plotSplitter.sizePolicy().hasHeightForWidth())
        self.plotSplitter.setSizePolicy(sizePolicy)
        self.plotSplitter.setOrientation(QtCore.Qt.Vertical)
        self.plotSplitter.setObjectName(_fromUtf8("plotSplitter"))
        self.mainPlotLayout = GraphicsLayoutWidget(self.plotSplitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mainPlotLayout.sizePolicy().hasHeightForWidth())
        self.mainPlotLayout.setSizePolicy(sizePolicy)
        self.mainPlotLayout.setObjectName(_fromUtf8("mainPlotLayout"))
        self.waterfallPlotLayout = GraphicsLayoutWidget(self.plotSplitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.waterfallPlotLayout.sizePolicy().hasHeightForWidth())
        self.waterfallPlotLayout.setSizePolicy(sizePolicy)
        self.waterfallPlotLayout.setObjectName(_fromUtf8("waterfallPlotLayout"))
        self.horizontalLayout.addWidget(self.plotSplitter)
        QSpectrumAnalyzerMainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(QSpectrumAnalyzerMainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1200, 30))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menu_File = QtGui.QMenu(self.menubar)
        self.menu_File.setObjectName(_fromUtf8("menu_File"))
        self.menu_Help = QtGui.QMenu(self.menubar)
        self.menu_Help.setObjectName(_fromUtf8("menu_Help"))
        QSpectrumAnalyzerMainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(QSpectrumAnalyzerMainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        QSpectrumAnalyzerMainWindow.setStatusBar(self.statusbar)
        self.controlsDockWidget = QtGui.QDockWidget(QSpectrumAnalyzerMainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.controlsDockWidget.sizePolicy().hasHeightForWidth())
        self.controlsDockWidget.setSizePolicy(sizePolicy)
        self.controlsDockWidget.setMinimumSize(QtCore.QSize(190, 10))
        self.controlsDockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable)
        self.controlsDockWidget.setObjectName(_fromUtf8("controlsDockWidget"))
        self.controlsDockWidgetContents = QtGui.QWidget()
        self.controlsDockWidgetContents.setObjectName(_fromUtf8("controlsDockWidgetContents"))
        self.gridLayout_2 = QtGui.QGridLayout(self.controlsDockWidgetContents)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.startButton = QtGui.QPushButton(self.controlsDockWidgetContents)
        self.startButton.setObjectName(_fromUtf8("startButton"))
        self.gridLayout_2.addWidget(self.startButton, 0, 0, 1, 1)
        self.stopButton = QtGui.QPushButton(self.controlsDockWidgetContents)
        self.stopButton.setObjectName(_fromUtf8("stopButton"))
        self.gridLayout_2.addWidget(self.stopButton, 0, 1, 1, 1)
        self.singleShotButton = QtGui.QPushButton(self.controlsDockWidgetContents)
        self.singleShotButton.setObjectName(_fromUtf8("singleShotButton"))
        self.gridLayout_2.addWidget(self.singleShotButton, 1, 0, 1, 2)
        spacerItem = QtGui.QSpacerItem(20, 561, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem, 2, 0, 1, 1)
        self.controlsDockWidget.setWidget(self.controlsDockWidgetContents)
        QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.controlsDockWidget)
        self.frequencyDockWidget = QtGui.QDockWidget(QSpectrumAnalyzerMainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frequencyDockWidget.sizePolicy().hasHeightForWidth())
        self.frequencyDockWidget.setSizePolicy(sizePolicy)
        self.frequencyDockWidget.setMinimumSize(QtCore.QSize(225, 10))
        self.frequencyDockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable)
        self.frequencyDockWidget.setObjectName(_fromUtf8("frequencyDockWidget"))
        self.frequencyDockWidgetContents = QtGui.QWidget()
        self.frequencyDockWidgetContents.setObjectName(_fromUtf8("frequencyDockWidgetContents"))
        self.formLayout = QtGui.QFormLayout(self.frequencyDockWidgetContents)
        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label_2 = QtGui.QLabel(self.frequencyDockWidgetContents)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2)
        self.startFreqSpinBox = QtGui.QDoubleSpinBox(self.frequencyDockWidgetContents)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.startFreqSpinBox.sizePolicy().hasHeightForWidth())
        self.startFreqSpinBox.setSizePolicy(sizePolicy)
        self.startFreqSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.startFreqSpinBox.setDecimals(3)
        self.startFreqSpinBox.setMinimum(24.0)
        self.startFreqSpinBox.setMaximum(1766.0)
        self.startFreqSpinBox.setProperty("value", 87.0)
        self.startFreqSpinBox.setObjectName(_fromUtf8("startFreqSpinBox"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.startFreqSpinBox)
        self.label_3 = QtGui.QLabel(self.frequencyDockWidgetContents)
#.........这里部分代码省略.........
开发者ID:iamckn-sdr,项目名称:qspectrumanalyzer,代码行数:103,代码来源:ui_qspectrumanalyzer.py

示例7: Ui_MainWindow

# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import sizePolicy [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1280, 800)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.splitter_3 = QtWidgets.QSplitter(self.centralwidget)
        self.splitter_3.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_3.setObjectName("splitter_3")
        self.tabWidget = QtWidgets.QTabWidget(self.splitter_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setObjectName("tabWidget")
        self.widget = QtWidgets.QWidget()
        self.widget.setObjectName("widget")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.widget)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.treeWidget = QtWidgets.QTreeWidget(self.widget)
        self.treeWidget.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.treeWidget.sizePolicy().hasHeightForWidth())
        self.treeWidget.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Helvetica Neue")
        self.treeWidget.setFont(font)
        self.treeWidget.setAutoExpandDelay(-1)
        self.treeWidget.setColumnCount(8)
        self.treeWidget.setObjectName("treeWidget")
        self.treeWidget.headerItem().setText(0, "1")
        font = QtGui.QFont()
        font.setFamily("Helvetica Neue")
        font.setKerning(True)
        self.treeWidget.headerItem().setFont(0, font)
        self.treeWidget.headerItem().setText(1, "2")
        font = QtGui.QFont()
        font.setFamily("Helvetica Neue")
        self.treeWidget.headerItem().setFont(1, font)
        self.treeWidget.headerItem().setText(2, "3")
        font = QtGui.QFont()
        font.setFamily("Helvetica Neue")
        self.treeWidget.headerItem().setFont(2, font)
        self.treeWidget.headerItem().setText(3, "4")
        font = QtGui.QFont()
        font.setFamily("Helvetica Neue")
        self.treeWidget.headerItem().setFont(3, font)
        self.treeWidget.headerItem().setText(4, "5")
        self.treeWidget.headerItem().setText(5, "6")
        self.treeWidget.headerItem().setText(6, "7")
        self.treeWidget.headerItem().setText(7, "8")
        self.treeWidget.header().setDefaultSectionSize(50)
        self.treeWidget.header().setMinimumSectionSize(5)
        self.treeWidget.header().setSortIndicatorShown(True)
        self.verticalLayout_2.addWidget(self.treeWidget)
        self.tabWidget.addTab(self.widget, "")
        self.tabWidgetPage2 = QtWidgets.QWidget()
        self.tabWidgetPage2.setObjectName("tabWidgetPage2")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.tabWidgetPage2)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.textBrowser_4 = QtWidgets.QTextBrowser(self.tabWidgetPage2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.textBrowser_4.sizePolicy().hasHeightForWidth())
        self.textBrowser_4.setSizePolicy(sizePolicy)
        self.textBrowser_4.setBaseSize(QtCore.QSize(300, 0))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.textBrowser_4.setFont(font)
        self.textBrowser_4.setObjectName("textBrowser_4")
        self.verticalLayout.addWidget(self.textBrowser_4)
        self.tabWidget.addTab(self.tabWidgetPage2, "")
        self.splitter_2 = QtWidgets.QSplitter(self.splitter_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(100)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.splitter_2.sizePolicy().hasHeightForWidth())
        self.splitter_2.setSizePolicy(sizePolicy)
        self.splitter_2.setOrientation(QtCore.Qt.Vertical)
        self.splitter_2.setObjectName("splitter_2")
        self.frame_5 = QtWidgets.QFrame(self.splitter_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.frame_5.sizePolicy().hasHeightForWidth())
        self.frame_5.setSizePolicy(sizePolicy)
        self.frame_5.setMaximumSize(QtCore.QSize(16777215, 180))
        self.frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_5.setObjectName("frame_5")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_5)
#.........这里部分代码省略.........
开发者ID:jcornford,项目名称:pyecog,代码行数:103,代码来源:check_preds_design.py

示例8: Ui_MainWindow

# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import sizePolicy [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1472, 964)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout_10 = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10"))
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.widget_2 = QtGui.QWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.widget_2.sizePolicy().hasHeightForWidth())
        self.widget_2.setSizePolicy(sizePolicy)
        self.widget_2.setMinimumSize(QtCore.QSize(0, 845))
        self.widget_2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.widget_2.setObjectName(_fromUtf8("widget_2"))
        self.gridLayout_12 = QtGui.QGridLayout(self.widget_2)
        self.gridLayout_12.setSizeConstraint(QtGui.QLayout.SetFixedSize)
        self.gridLayout_12.setObjectName(_fromUtf8("gridLayout_12"))
        self.groupBox = QtGui.QGroupBox(self.widget_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setMinimumSize(QtCore.QSize(300, 0))
        self.groupBox.setMaximumSize(QtCore.QSize(300, 461))
        self.groupBox.setFlat(False)
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.ExperimentTabWidget = QtGui.QTabWidget(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ExperimentTabWidget.sizePolicy().hasHeightForWidth())
        self.ExperimentTabWidget.setSizePolicy(sizePolicy)
        self.ExperimentTabWidget.setObjectName(_fromUtf8("ExperimentTabWidget"))
        self.SSX = QtGui.QWidget()
        self.SSX.setObjectName(_fromUtf8("SSX"))
        self.gridLayout = QtGui.QGridLayout(self.SSX)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(self.SSX)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.RootSSX = QtGui.QLineEdit(self.SSX)
        self.RootSSX.setObjectName(_fromUtf8("RootSSX"))
        self.gridLayout.addWidget(self.RootSSX, 0, 1, 1, 1)
        self.label_2 = QtGui.QLabel(self.SSX)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.FileExtensionSSX = QtGui.QLineEdit(self.SSX)
        self.FileExtensionSSX.setObjectName(_fromUtf8("FileExtensionSSX"))
        self.gridLayout.addWidget(self.FileExtensionSSX, 1, 1, 1, 1)
        self.ExperimentTabWidget.addTab(self.SSX, _fromUtf8(""))
        self.verticalLayout_2.addWidget(self.ExperimentTabWidget)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.DataPathBut = QtGui.QPushButton(self.groupBox)
        self.DataPathBut.setObjectName(_fromUtf8("DataPathBut"))
        self.gridLayout_2.addWidget(self.DataPathBut, 0, 0, 1, 1)
        self.DataPath = QtGui.QLineEdit(self.groupBox)
        self.DataPath.setObjectName(_fromUtf8("DataPath"))
        self.gridLayout_2.addWidget(self.DataPath, 0, 1, 1, 1)
        self.ResPathBut = QtGui.QPushButton(self.groupBox)
        self.ResPathBut.setObjectName(_fromUtf8("ResPathBut"))
        self.gridLayout_2.addWidget(self.ResPathBut, 1, 0, 1, 1)
        self.ResultsPath = QtGui.QLineEdit(self.groupBox)
        self.ResultsPath.setText(_fromUtf8(""))
        self.ResultsPath.setObjectName(_fromUtf8("ResultsPath"))
        self.gridLayout_2.addWidget(self.ResultsPath, 1, 1, 1, 1)
        self.DarkPathBut = QtGui.QPushButton(self.groupBox)
        self.DarkPathBut.setObjectName(_fromUtf8("DarkPathBut"))
        self.gridLayout_2.addWidget(self.DarkPathBut, 2, 0, 1, 1)
        self.DarkPath = QtGui.QLineEdit(self.groupBox)
        self.DarkPath.setObjectName(_fromUtf8("DarkPath"))
        self.gridLayout_2.addWidget(self.DarkPath, 2, 1, 1, 1)
        self.MaskPathBut = QtGui.QPushButton(self.groupBox)
        self.MaskPathBut.setObjectName(_fromUtf8("MaskPathBut"))
        self.gridLayout_2.addWidget(self.MaskPathBut, 3, 0, 1, 1)
        self.MaskPath = QtGui.QLineEdit(self.groupBox)
        self.MaskPath.setObjectName(_fromUtf8("MaskPath"))
        self.gridLayout_2.addWidget(self.MaskPath, 3, 1, 1, 1)
        self.label_8 = QtGui.QLabel(self.groupBox)
        self.label_8.setAlignment(QtCore.Qt.AlignCenter)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout_2.addWidget(self.label_8, 4, 0, 1, 1)
        self.cpus = QtGui.QLineEdit(self.groupBox)
        self.cpus.setObjectName(_fromUtf8("cpus"))
        self.gridLayout_2.addWidget(self.cpus, 4, 1, 1, 1)
        self.verticalLayout_2.addLayout(self.gridLayout_2)
#.........这里部分代码省略.........
开发者ID:tschoonj,项目名称:NanoPeakCell,代码行数:103,代码来源:npg_qt4_ui.py


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