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


Python PlotWidget.setMaximumSize方法代码示例

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


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

示例1: Ui_Dialog

# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMaximumSize [as 别名]
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(800, 450)
        self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.widget = QtWidgets.QWidget(Dialog)
        self.widget.setObjectName("widget")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.widget)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.widget_3 = QtWidgets.QWidget(self.widget)
        self.widget_3.setObjectName("widget_3")
        self.label = QtWidgets.QLabel(self.widget_3)
        self.label.setGeometry(QtCore.QRect(30, 340, 67, 17))
        self.label.setObjectName("label")
        self.label_2 = QtWidgets.QLabel(self.widget_3)
        self.label_2.setGeometry(QtCore.QRect(20, 0, 67, 17))
        self.label_2.setObjectName("label_2")
        self.lineEdit = QtWidgets.QLineEdit(self.widget_3)
        self.lineEdit.setGeometry(QtCore.QRect(10, 30, 113, 27))
        self.lineEdit.setObjectName("lineEdit")
        self.horizontalLayout_2.addWidget(self.widget_3)
        self.graphicsView = PlotWidget(self.widget)
        self.graphicsView.setMaximumSize(QtCore.QSize(640, 16777215))
        self.graphicsView.setObjectName("graphicsView")
        self.horizontalLayout_2.addWidget(self.graphicsView)
        self.verticalLayout.addWidget(self.widget)
        self.widget_2 = QtWidgets.QWidget(Dialog)
        self.widget_2.setMaximumSize(QtCore.QSize(16777215, 30))
        self.widget_2.setObjectName("widget_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.widget_2)
        self.horizontalLayout.setContentsMargins(100, 0, 100, 0)
        self.horizontalLayout.setSpacing(100)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.pushButton = QtWidgets.QPushButton(self.widget_2)
        self.pushButton.setObjectName("pushButton")
        self.horizontalLayout.addWidget(self.pushButton)
        self.pushButton_3 = QtWidgets.QPushButton(self.widget_2)
        self.pushButton_3.setObjectName("pushButton_3")
        self.horizontalLayout.addWidget(self.pushButton_3)
        self.pushButton_2 = QtWidgets.QPushButton(self.widget_2)
        self.pushButton_2.setObjectName("pushButton_2")
        self.horizontalLayout.addWidget(self.pushButton_2)
        self.verticalLayout.addWidget(self.widget_2)

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

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
        self.label.setText(_translate("Dialog", "TextLabel"))
        self.label_2.setText(_translate("Dialog", "TextLabel"))
        self.pushButton.setText(_translate("Dialog", "PushButton"))
        self.pushButton_3.setText(_translate("Dialog", "PushButton"))
        self.pushButton_2.setText(_translate("Dialog", "PushButton"))
开发者ID:Shironofenny,项目名称:BioEE_Colsti,代码行数:59,代码来源:dialogswv_ui.py

示例2: Ui_HitFinding

# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMaximumSize [as 别名]
class Ui_HitFinding(object):
    def setupUi(self, HitFinding):
        HitFinding.setObjectName(_fromUtf8("HitFinding"))
        HitFinding.resize(622, 817)
        #HitFinding.setFrameShape(QtGui.QFrame.StyledPanel)
        #HitFinding.setFrameShadow(QtGui.QFrame.Raised)
        self.HitRateView = PlotWidget(HitFinding)
        self.HitRateView.setGeometry(QtCore.QRect(20, 20, 590, 400))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.HitRateView.sizePolicy().hasHeightForWidth())
        self.HitRateView.setSizePolicy(sizePolicy)
        self.HitRateView.setMinimumSize(QtCore.QSize(590, 400))
        self.HitRateView.setMaximumSize(QtCore.QSize(590, 400))
        self.HitRateView.setSizeIncrement(QtCore.QSize(1, 1))
        self.HitRateView.setObjectName(_fromUtf8("HitRateView"))
        self.groupBox_4 = QtGui.QGroupBox(HitFinding)
        self.groupBox_4.setGeometry(QtCore.QRect(20, 430, 581, 221))
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.label_24 = QtGui.QLabel(self.groupBox_4)
        self.label_24.setGeometry(QtCore.QRect(444, 71, 17, 21))
        self.label_24.setObjectName(_fromUtf8("label_24"))
        self.label_25 = QtGui.QLabel(self.groupBox_4)
        self.label_25.setGeometry(QtCore.QRect(444, 40, 17, 21))
        self.label_25.setObjectName(_fromUtf8("label_25"))
        self.ROIX1 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIX1.setGeometry(QtCore.QRect(359, 40, 75, 21))
        self.ROIX1.setObjectName(_fromUtf8("ROIX1"))
        self.label_26 = QtGui.QLabel(self.groupBox_4)
        self.label_26.setGeometry(QtCore.QRect(326, 71, 25, 21))
        self.label_26.setObjectName(_fromUtf8("label_26"))
        self.ROIX2 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIX2.setGeometry(QtCore.QRect(359, 71, 75, 21))
        self.ROIX2.setObjectName(_fromUtf8("ROIX2"))
        self.ROIY2 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIY2.setGeometry(QtCore.QRect(471, 71, 76, 21))
        self.ROIY2.setObjectName(_fromUtf8("ROIY2"))
        self.ROIY1 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIY1.setGeometry(QtCore.QRect(471, 40, 76, 21))
        self.ROIY1.setObjectName(_fromUtf8("ROIY1"))
        self.label_27 = QtGui.QLabel(self.groupBox_4)
        self.label_27.setGeometry(QtCore.QRect(326, 40, 25, 21))
        self.label_27.setObjectName(_fromUtf8("label_27"))
        self.label_28 = QtGui.QLabel(self.groupBox_4)
        self.label_28.setGeometry(QtCore.QRect(290, 40, 26, 21))
        self.label_28.setObjectName(_fromUtf8("label_28"))
        self.UpdateROI = QtGui.QPushButton(self.groupBox_4)
        self.UpdateROI.setGeometry(QtCore.QRect(330, 100, 221, 32))
        self.UpdateROI.setObjectName(_fromUtf8("UpdateROI"))
        self.npix = QtGui.QLineEdit(self.groupBox_4)
        self.npix.setGeometry(QtCore.QRect(100, 70, 51, 21))
        self.npix.setObjectName(_fromUtf8("npix"))
        self.label_22 = QtGui.QLabel(self.groupBox_4)
        self.label_22.setGeometry(QtCore.QRect(30, 39, 61, 21))
        self.label_22.setObjectName(_fromUtf8("label_22"))
        self.thresh = QtGui.QLineEdit(self.groupBox_4)
        self.thresh.setGeometry(QtCore.QRect(99, 39, 51, 21))
        self.thresh.setObjectName(_fromUtf8("thresh"))
        self.label_21 = QtGui.QLabel(self.groupBox_4)
        self.label_21.setGeometry(QtCore.QRect(30, 70, 61, 21))
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.clearHitRate = QtGui.QPushButton(self.groupBox_4)
        self.clearHitRate.setGeometry(QtCore.QRect(180, 180, 221, 32))
        self.clearHitRate.setObjectName(_fromUtf8("clearHitRate"))
        self.label_23 = QtGui.QLabel(self.groupBox_4)
        self.label_23.setGeometry(QtCore.QRect(30, 100, 61, 21))
        self.label_23.setObjectName(_fromUtf8("label_23"))
        self.ncpus = QtGui.QLineEdit(self.groupBox_4)
        self.ncpus.setGeometry(QtCore.QRect(100, 100, 51, 21))
        self.ncpus.setObjectName(_fromUtf8("ncpus"))
        self.ShowROI = QtGui.QPushButton(self.groupBox_4)
        self.ShowROI.setGeometry(QtCore.QRect(330, 130, 221, 32))
        self.ShowROI.setObjectName(_fromUtf8("ShowROI"))
        self.HitLog = QtGui.QPlainTextEdit(HitFinding)
        self.HitLog.setGeometry(QtCore.QRect(20, 660, 581, 141))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Courier New"))
        font.setPointSize(10)
        self.HitLog.setFont(font)
        self.HitLog.setObjectName(_fromUtf8("HitLog"))

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

    def retranslateUi(self, HitFinding):
        HitFinding.setWindowTitle(_translate("HitFinding", "Frame", None))
        self.groupBox_4.setTitle(_translate("HitFinding", "Hit Finding", None))
        self.label_24.setText(_translate("HitFinding", "Y2", None))
        self.label_25.setText(_translate("HitFinding", "Y1", None))
        self.ROIX1.setText(_translate("HitFinding", "0", None))
        self.label_26.setText(_translate("HitFinding", "X2", None))
        self.ROIX2.setText(_translate("HitFinding", "2167", None))
        self.ROIY2.setText(_translate("HitFinding", "2070", None))
        self.ROIY1.setText(_translate("HitFinding", "0", None))
        self.label_27.setText(_translate("HitFinding", "X1", None))
        self.label_28.setText(_translate("HitFinding", "ROI", None))
        self.UpdateROI.setText(_translate("HitFinding", "Update ROI", None))
        self.npix.setText(_translate("HitFinding", "10", None))
        self.label_22.setText(_translate("HitFinding", "Threshold", None))
#.........这里部分代码省略.........
开发者ID:coquellen,项目名称:NanoPeakCell,代码行数:103,代码来源:LiveHF.py

示例3: stc_MainWindow

# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMaximumSize [as 别名]
class stc_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(916, 609)
        MainWindow.setMinimumSize(QtCore.QSize(916, 609))
        MainWindow.setMaximumSize(QtCore.QSize(916, 609))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(QtCore.QDir().currentPath()+"/logo/icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.groupBox = QtGui.QGroupBox(self.centralwidget)
        self.groupBox.setGeometry(QtCore.QRect(10, 320, 211, 131))
        self.groupBox.setObjectName("groupBox")
        self.pot_label = QtGui.QLabel(self.groupBox)
        self.pot_label.setGeometry(QtCore.QRect(10, 30, 91, 31))
        self.pot_label.setObjectName("pot_label")
        self.pot_num = QtGui.QComboBox(self.groupBox)
        self.pot_num.setGeometry(QtCore.QRect(110, 40, 69, 22))
        self.pot_num.setObjectName("pot_num")
        self.new_show = QtGui.QPushButton(self.groupBox)
        self.new_show.setGeometry(QtCore.QRect(10, 80, 91, 31))
        self.new_show.setObjectName("new_show")
        self.on_show = QtGui.QPushButton(self.groupBox)
        self.on_show.setGeometry(QtCore.QRect(110, 80, 91, 31))
        self.on_show.setObjectName("on_show")
        self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_2.setGeometry(QtCore.QRect(10, 459, 211, 121))
        self.groupBox_2.setObjectName("groupBox_2")
        self.weekday = QtGui.QComboBox(self.groupBox_2)
        self.weekday.setGeometry(QtCore.QRect(10, 30, 69, 22))
        self.weekday.setObjectName("weekday")
        self.spe_time = QtGui.QComboBox(self.groupBox_2)
        self.spe_time.setGeometry(QtCore.QRect(110, 30, 69, 22))
        self.spe_time.setObjectName("spe_time")
        self.pushButton = QtGui.QPushButton(self.groupBox_2)
        self.pushButton.setGeometry(QtCore.QRect(60, 60, 75, 23))
        self.pushButton.setObjectName("pushButton")
        self.label_2 = QtGui.QLabel(self.groupBox_2)
        self.label_2.setGeometry(QtCore.QRect(20, 90, 141, 31))
        self.label_2.setObjectName("label_2")
        self.groupBox_3 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_3.setGeometry(QtCore.QRect(10, 10, 211, 291))
        self.groupBox_3.setObjectName("groupBox_3")
        self.attr_list = QtGui.QListWidget(self.groupBox_3)
        self.attr_list.setGeometry(QtCore.QRect(0, 20, 201, 261))
        self.attr_list.setObjectName("attr_list")
        self.groupBox_4 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_4.setGeometry(QtCore.QRect(230, 0, 681, 581))
        self.groupBox_4.setObjectName("groupBox_4")
        self.curve_graphics = PlotWidget(self.groupBox_4)
        self.curve_graphics.setGeometry(QtCore.QRect(10, 20, 661, 551))
        self.curve_graphics.setMinimumSize(QtCore.QSize(661, 551))
        self.curve_graphics.setMaximumSize(QtCore.QSize(661, 551))
        self.curve_graphics.setObjectName("curve_graphics")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 916, 23))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "预测结果", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("MainWindow", "展示其它窗口结果", None, QtGui.QApplication.UnicodeUTF8))
        self.pot_label.setText(QtGui.QApplication.translate("MainWindow", " 选择窗口号:", None, QtGui.QApplication.UnicodeUTF8))
        self.new_show.setText(QtGui.QApplication.translate("MainWindow", "单独显示", None, QtGui.QApplication.UnicodeUTF8))
        self.on_show.setText(QtGui.QApplication.translate("MainWindow", "原图显示", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("MainWindow", "所选窗口某段时间金额", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton.setText(QtGui.QApplication.translate("MainWindow", "显示金额", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("MainWindow", "金额:", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_3.setTitle(QtGui.QApplication.translate("MainWindow", "数据属性列表", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_4.setTitle(QtGui.QApplication.translate("MainWindow", "预测结果图形化展示", None, QtGui.QApplication.UnicodeUTF8))
开发者ID:yjwudi,项目名称:No-More-Queue,代码行数:77,代码来源:nmq_second_stc.py

示例4: Ui_MainWindow

# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMaximumSize [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(960, 546)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setContentsMargins(9, 9, 9, 0)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.Content = QtWidgets.QWidget(self.centralwidget)
        self.Content.setObjectName("Content")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.Content)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setSpacing(10)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.Electrode = QtWidgets.QWidget(self.Content)
        self.Electrode.setMinimumSize(QtCore.QSize(200, 0))
        self.Electrode.setMaximumSize(QtCore.QSize(400, 800))
        self.Electrode.setObjectName("Electrode")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.Electrode)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(5)
        self.verticalLayout.setObjectName("verticalLayout")
        self.widget = QtWidgets.QWidget(self.Electrode)
        self.widget.setMinimumSize(QtCore.QSize(0, 200))
        self.widget.setMaximumSize(QtCore.QSize(16777215, 700))
        self.widget.setObjectName("widget")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.widget)
        self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5.setSpacing(0)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.tabWidget = QtWidgets.QTabWidget(self.widget)
        self.tabWidget.setObjectName("tabWidget")
        self.read = QtWidgets.QWidget()
        self.read.setObjectName("read")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.read)
        self.verticalLayout_6.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_6.setSpacing(0)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.Status = QtWidgets.QWidget(self.read)
        self.Status.setObjectName("Status")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.Status)
        self.horizontalLayout_5.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label_2 = QtWidgets.QLabel(self.Status)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_5.addWidget(self.label_2)
        self.leStatus = QtWidgets.QLineEdit(self.Status)
        self.leStatus.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leStatus.setReadOnly(True)
        self.leStatus.setObjectName("leStatus")
        self.horizontalLayout_5.addWidget(self.leStatus)
        self.verticalLayout_6.addWidget(self.Status)
        self.Refrence = QtWidgets.QWidget(self.read)
        self.Refrence.setObjectName("Refrence")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.Refrence)
        self.horizontalLayout_6.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.label_3 = QtWidgets.QLabel(self.Refrence)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_6.addWidget(self.label_3)
        self.leRE = QtWidgets.QLineEdit(self.Refrence)
        self.leRE.setMinimumSize(QtCore.QSize(100, 0))
        self.leRE.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leRE.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leRE.setReadOnly(True)
        self.leRE.setObjectName("leRE")
        self.horizontalLayout_6.addWidget(self.leRE)
        self.verticalLayout_6.addWidget(self.Refrence)
        self.Counter = QtWidgets.QWidget(self.read)
        self.Counter.setObjectName("Counter")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.Counter)
        self.horizontalLayout_7.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_4 = QtWidgets.QLabel(self.Counter)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_7.addWidget(self.label_4)
        self.leCE = QtWidgets.QLineEdit(self.Counter)
        self.leCE.setMinimumSize(QtCore.QSize(100, 0))
        self.leCE.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leCE.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leCE.setReadOnly(True)
        self.leCE.setObjectName("leCE")
        self.horizontalLayout_7.addWidget(self.leCE)
        self.verticalLayout_6.addWidget(self.Counter)
        self.Working1 = QtWidgets.QWidget(self.read)
        self.Working1.setObjectName("Working1")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.Working1)
        self.horizontalLayout_9.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.label_6 = QtWidgets.QLabel(self.Working1)
        self.label_6.setObjectName("label_6")
        self.horizontalLayout_9.addWidget(self.label_6)
        self.leWE1 = QtWidgets.QLineEdit(self.Working1)
        self.leWE1.setMinimumSize(QtCore.QSize(100, 0))
        self.leWE1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.leWE1.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.leWE1.setReadOnly(True)
        self.leWE1.setObjectName("leWE1")
#.........这里部分代码省略.........
开发者ID:Shironofenny,项目名称:BioEE_Colsti,代码行数:103,代码来源:bioeecosti_ui.py

示例5: Ui_lasagna_mainWindow

# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMaximumSize [as 别名]
class Ui_lasagna_mainWindow(object):
    def setupUi(self, lasagna_mainWindow):
        lasagna_mainWindow.setObjectName(_fromUtf8("lasagna_mainWindow"))
        lasagna_mainWindow.resize(1002, 795)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(lasagna_mainWindow.sizePolicy().hasHeightForWidth())
        lasagna_mainWindow.setSizePolicy(sizePolicy)
        lasagna_mainWindow.setMinimumSize(QtCore.QSize(540, 540))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/icons/lasagna_32.png")), QtGui.QIcon.Normal, QtGui.QIcon.On)
        lasagna_mainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(lasagna_mainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.splitter_3 = QtGui.QSplitter(self.centralwidget)
        self.splitter_3.setOrientation(QtCore.Qt.Vertical)
        self.splitter_3.setObjectName(_fromUtf8("splitter_3"))
        self.splitter = QtGui.QSplitter(self.splitter_3)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.graphicsView_1 = LasagnaPlotWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.graphicsView_1.sizePolicy().hasHeightForWidth())
        self.graphicsView_1.setSizePolicy(sizePolicy)
        self.graphicsView_1.setObjectName(_fromUtf8("graphicsView_1"))
        self.graphicsView_2 = LasagnaPlotWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.graphicsView_2.sizePolicy().hasHeightForWidth())
        self.graphicsView_2.setSizePolicy(sizePolicy)
        self.graphicsView_2.setObjectName(_fromUtf8("graphicsView_2"))
        self.splitter_2 = QtGui.QSplitter(self.splitter_3)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
        self.graphicsView_3 = LasagnaPlotWidget(self.splitter_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.graphicsView_3.sizePolicy().hasHeightForWidth())
        self.graphicsView_3.setSizePolicy(sizePolicy)
        self.graphicsView_3.setObjectName(_fromUtf8("graphicsView_3"))
        self.frame_2 = QtGui.QFrame(self.splitter_2)
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName(_fromUtf8("frame_2"))
        self.gridLayout.addWidget(self.splitter_3, 0, 0, 1, 1)
        lasagna_mainWindow.setCentralWidget(self.centralwidget)
        self.menuBar = QtGui.QMenuBar(lasagna_mainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 1002, 27))
        self.menuBar.setObjectName(_fromUtf8("menuBar"))
        self.menuFile = QtGui.QMenu(self.menuBar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuOpen_recent = QtGui.QMenu(self.menuFile)
        self.menuOpen_recent.setObjectName(_fromUtf8("menuOpen_recent"))
        self.menuLoad_ingredient = QtGui.QMenu(self.menuFile)
        self.menuLoad_ingredient.setObjectName(_fromUtf8("menuLoad_ingredient"))
        self.menuHelp = QtGui.QMenu(self.menuBar)
        self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
        self.menuPlugins = QtGui.QMenu(self.menuBar)
        self.menuPlugins.setObjectName(_fromUtf8("menuPlugins"))
        lasagna_mainWindow.setMenuBar(self.menuBar)
        self.mainDockWidget = QtGui.QDockWidget(lasagna_mainWindow)
        self.mainDockWidget.setMinimumSize(QtCore.QSize(331, 587))
        self.mainDockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable)
        self.mainDockWidget.setObjectName(_fromUtf8("mainDockWidget"))
        self.dockWidgetContents = QtGui.QWidget()
        self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.dockWidgetContents)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.tabWidget = QtGui.QTabWidget(self.dockWidgetContents)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.imageSettingsTab = QtGui.QWidget()
        self.imageSettingsTab.setObjectName(_fromUtf8("imageSettingsTab"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.imageSettingsTab)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.intensityHistogram = PlotWidget(self.imageSettingsTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.intensityHistogram.sizePolicy().hasHeightForWidth())
        self.intensityHistogram.setSizePolicy(sizePolicy)
        self.intensityHistogram.setMinimumSize(QtCore.QSize(0, 180))
        self.intensityHistogram.setMaximumSize(QtCore.QSize(16777215, 180))
        self.intensityHistogram.setObjectName(_fromUtf8("intensityHistogram"))
        self.verticalLayout_3.addWidget(self.intensityHistogram)
        self.horizontalLayout_13 = QtGui.QHBoxLayout()
        self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13"))
        self.logYcheckBox = QtGui.QCheckBox(self.imageSettingsTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.logYcheckBox.sizePolicy().hasHeightForWidth())
        self.logYcheckBox.setSizePolicy(sizePolicy)
        self.logYcheckBox.setMaximumSize(QtCore.QSize(16777215, 21))
#.........这里部分代码省略.........
开发者ID:raacampbell,项目名称:lasagna,代码行数:103,代码来源:lasagna_mainWindow.py


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