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


Python GraphicsLayoutWidget.setGeometry方法代码示例

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


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

示例1: Ui_MainWindow

# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setGeometry [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(670, 140, 75, 23))
        self.pushButton.setObjectName("pushButton")
        self.pyqtgraph1 = GraphicsLayoutWidget(self.centralwidget)
        self.pyqtgraph1.setGeometry(QtCore.QRect(10, 10, 601, 201))
        self.pyqtgraph1.setObjectName("pyqtgraph1")
        self.pyqtgraph2 = GraphicsLayoutWidget(self.centralwidget)
        self.pyqtgraph2.setGeometry(QtCore.QRect(10, 220, 381, 351))
        self.pyqtgraph2.setObjectName("pyqtgraph2")
        self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_2.setGeometry(QtCore.QRect(430, 380, 75, 23))
        self.pushButton_2.setObjectName("pushButton_2")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 23))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.pushButton.setText(_translate("MainWindow", "水平绘图"))
        self.pushButton_2.setText(_translate("MainWindow", "垂直绘图"))
开发者ID:kiorry,项目名称:PYQT,代码行数:37,代码来源:Ui_pyqtgraph_pyqt.py

示例2: Ui_plotdialog

# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setGeometry [as 别名]
class Ui_plotdialog(object):
    def setupUi(self, plotdialog):
        plotdialog.setObjectName(_fromUtf8("plotdialog"))
        plotdialog.resize(854, 610)
        self.graphicsView = GraphicsLayoutWidget(plotdialog)
        self.graphicsView.setGeometry(QtCore.QRect(30, 10, 811, 481))
        self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
        self.hslider = QtGui.QSlider(plotdialog)
        self.hslider.setGeometry(QtCore.QRect(20, 510, 431, 29))
        self.hslider.setMaximum(100)
        self.hslider.setOrientation(QtCore.Qt.Horizontal)
        self.hslider.setTickPosition(QtGui.QSlider.TicksBothSides)
        self.hslider.setObjectName(_fromUtf8("hslider"))
        self.comboBox = QtGui.QComboBox(plotdialog)
        self.comboBox.setGeometry(QtCore.QRect(30, 550, 141, 31))
        self.comboBox.setObjectName(_fromUtf8("comboBox"))
        self.showbtn = QtGui.QToolButton(plotdialog)
        self.showbtn.setGeometry(QtCore.QRect(240, 550, 151, 31))
        self.showbtn.setObjectName(_fromUtf8("showbtn"))

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

    def retranslateUi(self, plotdialog):
        plotdialog.setWindowTitle(QtGui.QApplication.translate("plotdialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8))
        self.showbtn.setText(QtGui.QApplication.translate("plotdialog", "Show/Hide PF", None, QtGui.QApplication.UnicodeUTF8))
开发者ID:siddhartha047,项目名称:FDEA,代码行数:28,代码来源:plots.py

示例3: Ui_SAXSgui

# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setGeometry [as 别名]
class Ui_SAXSgui(object):
    def setupUi(self, SAXSgui):
        SAXSgui.setObjectName(_fromUtf8("SAXSgui"))
        SAXSgui.resize(925, 630)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(SAXSgui.sizePolicy().hasHeightForWidth())
        SAXSgui.setSizePolicy(sizePolicy)
        SAXSgui.setMinimumSize(QtCore.QSize(925, 630))
        SAXSgui.setFocusPolicy(QtCore.Qt.StrongFocus)
        SAXSgui.setWindowOpacity(1.0)
        SAXSgui.setAutoFillBackground(False)
        SAXSgui.setTabShape(QtGui.QTabWidget.Rounded)
        self.centralwidget = QtGui.QWidget(SAXSgui)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.Console = QtGui.QTabWidget(self.centralwidget)
        self.Console.setGeometry(QtCore.QRect(50, 30, 821, 541))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.Console.sizePolicy().hasHeightForWidth())
        self.Console.setSizePolicy(sizePolicy)
        self.Console.setObjectName(_fromUtf8("Console"))
        self.fourierspace_tab = QtGui.QWidget()
        self.fourierspace_tab.setObjectName(_fromUtf8("fourierspace_tab"))
        self.fourierView = GraphicsLayoutWidget(self.fourierspace_tab)
        self.fourierView.setGeometry(QtCore.QRect(10, 0, 511, 491))
        self.fourierView.setObjectName(_fromUtf8("fourierView"))
        self.checkLogY = QtGui.QCheckBox(self.fourierspace_tab)
        self.checkLogY.setGeometry(QtCore.QRect(540, 10, 131, 20))
        self.checkLogY.setObjectName(_fromUtf8("checkLogY"))
        self.checkLogX = QtGui.QCheckBox(self.fourierspace_tab)
        self.checkLogX.setGeometry(QtCore.QRect(540, 40, 131, 20))
        self.checkLogX.setObjectName(_fromUtf8("checkLogX"))
        self.beamview = GraphicsLayoutWidget(self.fourierspace_tab)
        self.beamview.setGeometry(QtCore.QRect(540, 300, 261, 191))
        self.beamview.setObjectName(_fromUtf8("beamview"))
        self.label_8 = QtGui.QLabel(self.fourierspace_tab)
        self.label_8.setGeometry(QtCore.QRect(550, 280, 121, 16))
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.nskip_spinbox = QtGui.QSpinBox(self.fourierspace_tab)
        self.nskip_spinbox.setGeometry(QtCore.QRect(550, 80, 57, 24))
        self.nskip_spinbox.setMaximum(1000)
        self.nskip_spinbox.setObjectName(_fromUtf8("nskip_spinbox"))
        self.label_19 = QtGui.QLabel(self.fourierspace_tab)
        self.label_19.setGeometry(QtCore.QRect(620, 80, 161, 16))
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.nskip2_spinbox = QtGui.QSpinBox(self.fourierspace_tab)
        self.nskip2_spinbox.setGeometry(QtCore.QRect(550, 110, 57, 24))
        self.nskip2_spinbox.setMinimum(0)
        self.nskip2_spinbox.setMaximum(1000)
        self.nskip2_spinbox.setProperty("value", 0)
        self.nskip2_spinbox.setObjectName(_fromUtf8("nskip2_spinbox"))
        self.label_20 = QtGui.QLabel(self.fourierspace_tab)
        self.label_20.setGeometry(QtCore.QRect(620, 110, 161, 16))
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.label_22 = QtGui.QLabel(self.fourierspace_tab)
        self.label_22.setGeometry(QtCore.QRect(550, 160, 62, 16))
        self.label_22.setObjectName(_fromUtf8("label_22"))
        self.label_23 = QtGui.QLabel(self.fourierspace_tab)
        self.label_23.setGeometry(QtCore.QRect(550, 180, 62, 16))
        self.label_23.setObjectName(_fromUtf8("label_23"))
        self.qmin_label = QtGui.QLabel(self.fourierspace_tab)
        self.qmin_label.setGeometry(QtCore.QRect(605, 160, 206, 16))
        self.qmin_label.setObjectName(_fromUtf8("qmin_label"))
        self.qmax_label = QtGui.QLabel(self.fourierspace_tab)
        self.qmax_label.setGeometry(QtCore.QRect(605, 180, 206, 16))
        self.qmax_label.setObjectName(_fromUtf8("qmax_label"))
        self.Console.addTab(self.fourierspace_tab, _fromUtf8(""))
        self.guinierkratky_tab = QtGui.QWidget()
        self.guinierkratky_tab.setObjectName(_fromUtf8("guinierkratky_tab"))
        self.primaryanalysis_view = GraphicsLayoutWidget(self.guinierkratky_tab)
        self.primaryanalysis_view.setGeometry(QtCore.QRect(20, 10, 781, 401))
        self.primaryanalysis_view.setObjectName(_fromUtf8("primaryanalysis_view"))
        self.groupBox_4 = QtGui.QGroupBox(self.guinierkratky_tab)
        self.groupBox_4.setEnabled(True)
        self.groupBox_4.setGeometry(QtCore.QRect(20, 410, 341, 91))
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.qRgmin = QtGui.QDoubleSpinBox(self.groupBox_4)
        self.qRgmin.setGeometry(QtCore.QRect(10, 30, 62, 24))
        self.qRgmin.setMaximum(1.0)
        self.qRgmin.setSingleStep(0.05)
        self.qRgmin.setProperty("value", 1.0)
        self.qRgmin.setObjectName(_fromUtf8("qRgmin"))
        self.label_16 = QtGui.QLabel(self.groupBox_4)
        self.label_16.setGeometry(QtCore.QRect(80, 30, 62, 16))
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.label_17 = QtGui.QLabel(self.groupBox_4)
        self.label_17.setGeometry(QtCore.QRect(80, 60, 62, 16))
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.qRgmax = QtGui.QDoubleSpinBox(self.groupBox_4)
        self.qRgmax.setGeometry(QtCore.QRect(10, 60, 62, 24))
        self.qRgmax.setMaximum(3.0)
        self.qRgmax.setSingleStep(0.05)
        self.qRgmax.setProperty("value", 1.3)
        self.qRgmax.setObjectName(_fromUtf8("qRgmax"))
        self.guinierminpts = QtGui.QLineEdit(self.groupBox_4)
        self.guinierminpts.setGeometry(QtCore.QRect(180, 30, 61, 21))
        self.guinierminpts.setObjectName(_fromUtf8("guinierminpts"))
#.........这里部分代码省略.........
开发者ID:delnatan,项目名称:UCSFsaxs,代码行数:103,代码来源:saxsgui.py

示例4: Ui_Qt_CV_MainWindow

# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setGeometry [as 别名]
class Ui_Qt_CV_MainWindow(object):
    def setupUi(self, Qt_CV_MainWindow):
        Qt_CV_MainWindow.setObjectName("Qt_CV_MainWindow")
        Qt_CV_MainWindow.resize(1158, 834)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(Qt_CV_MainWindow.sizePolicy().hasHeightForWidth())
        Qt_CV_MainWindow.setSizePolicy(sizePolicy)
        Qt_CV_MainWindow.setMouseTracking(True)
        Qt_CV_MainWindow.setAcceptDrops(False)
        self.centralwidget = QtGui.QWidget(Qt_CV_MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.layoutWidget = QtGui.QWidget(self.centralwidget)
        self.layoutWidget.setGeometry(QtCore.QRect(480, 50, 671, 41))
        self.layoutWidget.setObjectName("layoutWidget")
        self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.file_edit = QtGui.QLineEdit(self.layoutWidget)
        self.file_edit.setObjectName("file_edit")
        self.horizontalLayout.addWidget(self.file_edit)
        self.file_button = QtGui.QPushButton(self.layoutWidget)
        self.file_button.setObjectName("file_button")
        self.horizontalLayout.addWidget(self.file_button)
        self.pic_view = GraphicsLayoutWidget(self.centralwidget)
        self.pic_view.setGeometry(QtCore.QRect(599, 210, 551, 561))
        self.pic_view.setViewportUpdateMode(QtGui.QGraphicsView.FullViewportUpdate)
        self.pic_view.setObjectName("pic_view")
        self.exec_button = QtGui.QPushButton(self.centralwidget)
        self.exec_button.setGeometry(QtCore.QRect(840, 10, 81, 31))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.exec_button.sizePolicy().hasHeightForWidth())
        self.exec_button.setSizePolicy(sizePolicy)
        self.exec_button.setObjectName("exec_button")
        self.file_scrollbar = QtGui.QScrollBar(self.centralwidget)
        self.file_scrollbar.setGeometry(QtCore.QRect(480, 190, 431, 20))
        self.file_scrollbar.setProperty("value", 50)
        self.file_scrollbar.setOrientation(QtCore.Qt.Horizontal)
        self.file_scrollbar.setObjectName("file_scrollbar")
        self.layoutWidget1 = QtGui.QWidget(self.centralwidget)
        self.layoutWidget1.setGeometry(QtCore.QRect(20, 354, 120, 71))
        self.layoutWidget1.setObjectName("layoutWidget1")
        self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget1)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.label_2 = QtGui.QLabel(self.layoutWidget1)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.verticalLayout.addWidget(self.label_2)
        self.hist_view = PlotWidget(self.centralwidget)
        self.hist_view.setGeometry(QtCore.QRect(477, 210, 121, 561))
        self.hist_view.setObjectName("hist_view")
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setGeometry(QtCore.QRect(0, 300, 471, 16))
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName("line")
        self.color_combo = QtGui.QComboBox(self.centralwidget)
        self.color_combo.setGeometry(QtCore.QRect(170, 200, 271, 22))
        self.color_combo.setObjectName("color_combo")
        self.color_combo.addItem("")
        self.color_combo.addItem("")
        self.color_combo.addItem("")
        self.color_combo.addItem("")
        self.color_combo.addItem("")
        self.eject_edge_or_not = QtGui.QCheckBox(self.centralwidget)
        self.eject_edge_or_not.setGeometry(QtCore.QRect(20, 620, 171, 19))
        self.eject_edge_or_not.setObjectName("eject_edge_or_not")
        self.label_5 = QtGui.QLabel(self.centralwidget)
        self.label_5.setGeometry(QtCore.QRect(20, 200, 81, 16))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_5.setFont(font)
        self.label_5.setObjectName("label_5")
        self.label_6 = QtGui.QLabel(self.centralwidget)
        self.label_6.setGeometry(QtCore.QRect(20, 170, 81, 21))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_6.setFont(font)
        self.label_6.setObjectName("label_6")
        self.smooth_combo = QtGui.QComboBox(self.centralwidget)
        self.smooth_combo.setGeometry(QtCore.QRect(170, 170, 271, 22))
        self.smooth_combo.setObjectName("smooth_combo")
        self.smooth_combo.addItem("")
        self.smooth_combo.addItem("")
        self.smooth_combo.addItem("")
        self.smooth_combo.addItem("")
        self.smooth_combo.addItem("")
        self.line_2 = QtGui.QFrame(self.centralwidget)
#.........这里部分代码省略.........
开发者ID:tatabox2000,项目名称:Data_science,代码行数:103,代码来源:pygraph_Opencv.py

示例5: Ui_MainWindow

# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setGeometry [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


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