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


Python MplWidget.setMaximumSize方法代码示例

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


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

示例1: Ui_MainWindow

# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import setMaximumSize [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(998, 771)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.widget = QtGui.QWidget(self.centralwidget)
        self.widget.setObjectName(_fromUtf8("widget"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.widget)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.groupBox = QtGui.QGroupBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setMaximumSize(QtCore.QSize(300, 16777215))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.groupBox_4 = QtGui.QGroupBox(self.groupBox)
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_4)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.label_4 = QtGui.QLabel(self.groupBox_4)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1)
        self.line_raw = QtGui.QLineEdit(self.groupBox_4)
        self.line_raw.setMinimumSize(QtCore.QSize(180, 0))
        self.line_raw.setObjectName(_fromUtf8("line_raw"))
        self.gridLayout_2.addWidget(self.line_raw, 0, 1, 1, 2)
        self.open_raw = QtGui.QPushButton(self.groupBox_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.open_raw.sizePolicy().hasHeightForWidth())
        self.open_raw.setSizePolicy(sizePolicy)
        self.open_raw.setMaximumSize(QtCore.QSize(30, 30))
        self.open_raw.setObjectName(_fromUtf8("open_raw"))
        self.gridLayout_2.addWidget(self.open_raw, 0, 3, 1, 1)
        self.push_plot = QtGui.QPushButton(self.groupBox_4)
        self.push_plot.setObjectName(_fromUtf8("push_plot"))
        self.gridLayout_2.addWidget(self.push_plot, 1, 0, 1, 4)
        self.verticalLayout.addWidget(self.groupBox_4)
        self.groupBox_5 = QtGui.QGroupBox(self.groupBox)
        self.groupBox_5.setObjectName(_fromUtf8("groupBox_5"))
        self.gridLayout = QtGui.QGridLayout(self.groupBox_5)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_3 = QtGui.QLabel(self.groupBox_5)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.widget_4 = MplWidgetT(self.groupBox_5)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.widget_4.sizePolicy().hasHeightForWidth())
        self.widget_4.setSizePolicy(sizePolicy)
        self.widget_4.setMinimumSize(QtCore.QSize(0, 170))
        self.widget_4.setMaximumSize(QtCore.QSize(16777215, 150))
        self.widget_4.setObjectName(_fromUtf8("widget_4"))
        self.gridLayout.addWidget(self.widget_4, 0, 0, 1, 3)
        self.line_start = QtGui.QLineEdit(self.groupBox_5)
        self.line_start.setObjectName(_fromUtf8("line_start"))
        self.gridLayout.addWidget(self.line_start, 1, 1, 1, 1)
        self.label_2 = QtGui.QLabel(self.groupBox_5)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.line_end = QtGui.QLineEdit(self.groupBox_5)
        self.line_end.setObjectName(_fromUtf8("line_end"))
        self.gridLayout.addWidget(self.line_end, 2, 1, 1, 1)
        self.label_6 = QtGui.QLabel(self.groupBox_5)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout.addWidget(self.label_6, 1, 2, 1, 1)
        self.label_7 = QtGui.QLabel(self.groupBox_5)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout.addWidget(self.label_7, 2, 2, 1, 1)
        self.widget_6 = QtGui.QWidget(self.groupBox_5)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.widget_6.sizePolicy().hasHeightForWidth())
        self.widget_6.setSizePolicy(sizePolicy)
        self.widget_6.setMinimumSize(QtCore.QSize(0, 30))
        self.widget_6.setObjectName(_fromUtf8("widget_6"))
        self.pushButton_2 = QtGui.QPushButton(self.widget_6)
        self.pushButton_2.setGeometry(QtCore.QRect(180, 0, 81, 23))
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.pushButton_10 = QtGui.QPushButton(self.widget_6)
        self.pushButton_10.setGeometry(QtCore.QRect(0, 0, 81, 23))
        self.pushButton_10.setObjectName(_fromUtf8("pushButton_10"))
        self.gridLayout.addWidget(self.widget_6, 3, 0, 1, 3)
        self.verticalLayout.addWidget(self.groupBox_5)
        self.groupBox_6 = QtGui.QGroupBox(self.groupBox)
        self.groupBox_6.setObjectName(_fromUtf8("groupBox_6"))
        self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_6)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.checkbutt = QtGui.QPushButton(self.groupBox_6)
#.........这里部分代码省略.........
开发者ID:Pengchengu,项目名称:herding-spikes,代码行数:103,代码来源:WindowDesign.py

示例2: Ui_Form_wyk

# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import setMaximumSize [as 别名]
class Ui_Form_wyk(object):
    def setupUi(self, Form_wyk):
        Form_wyk.setObjectName(_fromUtf8("Form_wyk"))
        Form_wyk.resize(1182, 790)
        self.horizontalLayout_2 = QtGui.QHBoxLayout(Form_wyk)
        self.horizontalLayout_2.setSpacing(2)
        self.horizontalLayout_2.setMargin(2)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.groupBox = QtGui.QGroupBox(Form_wyk)
        self.groupBox.setMaximumSize(QtCore.QSize(140, 16777215))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.splitter = QtGui.QSplitter(self.groupBox)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.groupBox_2 = QtGui.QGroupBox(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setMinimumSize(QtCore.QSize(121, 61))
        self.groupBox_2.setMaximumSize(QtCore.QSize(121, 61))
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.w_liniowy = QtGui.QRadioButton(self.groupBox_2)
        self.w_liniowy.setGeometry(QtCore.QRect(20, 20, 82, 17))
        self.w_liniowy.setChecked(True)
        self.w_liniowy.setObjectName(_fromUtf8("w_liniowy"))
        self.w_slupkowy = QtGui.QRadioButton(self.groupBox_2)
        self.w_slupkowy.setGeometry(QtCore.QRect(20, 40, 82, 17))
        self.w_slupkowy.setObjectName(_fromUtf8("w_slupkowy"))
        self.groupBox_3 = QtGui.QGroupBox(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_3.sizePolicy().hasHeightForWidth())
        self.groupBox_3.setSizePolicy(sizePolicy)
        self.groupBox_3.setMinimumSize(QtCore.QSize(121, 61))
        self.groupBox_3.setMaximumSize(QtCore.QSize(121, 61))
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.t_log = QtGui.QRadioButton(self.groupBox_3)
        self.t_log.setGeometry(QtCore.QRect(20, 20, 91, 17))
        self.t_log.setChecked(True)
        self.t_log.setObjectName(_fromUtf8("t_log"))
        self.t_norm = QtGui.QRadioButton(self.groupBox_3)
        self.t_norm.setGeometry(QtCore.QRect(20, 40, 82, 17))
        self.t_norm.setObjectName(_fromUtf8("t_norm"))
        self.groupBox_4 = QtGui.QGroupBox(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_4.sizePolicy().hasHeightForWidth())
        self.groupBox_4.setSizePolicy(sizePolicy)
        self.groupBox_4.setMinimumSize(QtCore.QSize(120, 61))
        self.groupBox_4.setMaximumSize(QtCore.QSize(120, 61))
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.r_tak = QtGui.QRadioButton(self.groupBox_4)
        self.r_tak.setGeometry(QtCore.QRect(10, 20, 82, 17))
        self.r_tak.setChecked(True)
        self.r_tak.setObjectName(_fromUtf8("r_tak"))
        self.r_nie = QtGui.QRadioButton(self.groupBox_4)
        self.r_nie.setGeometry(QtCore.QRect(10, 40, 82, 17))
        self.r_nie.setObjectName(_fromUtf8("r_nie"))
        self.groupBox_5 = QtGui.QGroupBox(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_5.sizePolicy().hasHeightForWidth())
        self.groupBox_5.setSizePolicy(sizePolicy)
        self.groupBox_5.setMinimumSize(QtCore.QSize(120, 51))
        self.groupBox_5.setMaximumSize(QtCore.QSize(120, 51))
        self.groupBox_5.setObjectName(_fromUtf8("groupBox_5"))
        self.zaznaczony = QtGui.QComboBox(self.groupBox_5)
        self.zaznaczony.setGeometry(QtCore.QRect(10, 20, 101, 22))
        self.zaznaczony.setObjectName(_fromUtf8("zaznaczony"))
        self.groupBox_6 = QtGui.QGroupBox(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_6.sizePolicy().hasHeightForWidth())
        self.groupBox_6.setSizePolicy(sizePolicy)
        self.groupBox_6.setMinimumSize(QtCore.QSize(120, 411))
        self.groupBox_6.setMaximumSize(QtCore.QSize(120, 1000))
        self.groupBox_6.setObjectName(_fromUtf8("groupBox_6"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox_6)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.p_top = QtGui.QPushButton(self.groupBox_6)
        self.p_top.setMinimumSize(QtCore.QSize(21, 24))
        self.p_top.setMaximumSize(QtCore.QSize(21, 24))
        self.p_top.setText(_fromUtf8(""))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("ikonki/TOP.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.p_top.setIcon(icon)
#.........这里部分代码省略.........
开发者ID:PawelKra,项目名称:LDB_Pomiary,代码行数:103,代码来源:wykresUI.py

示例3: Ui_Form

# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import setMaximumSize [as 别名]
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(580, 462)
        self.verticalLayout = QtGui.QVBoxLayout(Form)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.mpl = MplWidget(Form)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mpl.sizePolicy().hasHeightForWidth())
        self.mpl.setSizePolicy(sizePolicy)
        self.mpl.setMaximumSize(QtCore.QSize(821, 630))
        self.mpl.setObjectName(_fromUtf8("mpl"))
        self.verticalLayout.addWidget(self.mpl)
        self.horizontalLayout_22 = QtGui.QHBoxLayout()
        self.horizontalLayout_22.setSpacing(1)
        self.horizontalLayout_22.setSizeConstraint(QtGui.QLayout.SetMinimumSize)
        self.horizontalLayout_22.setObjectName(_fromUtf8("horizontalLayout_22"))
        self.mplactionCut_by_line = QtGui.QPushButton(Form)
        self.mplactionCut_by_line.setCheckable(True)
        self.mplactionCut_by_line.setFlat(True)
        self.mplactionCut_by_line.setObjectName(_fromUtf8("mplactionCut_by_line"))
        self.horizontalLayout_22.addWidget(self.mplactionCut_by_line)
        self.mplactionCut_by_rect = QtGui.QPushButton(Form)
        self.mplactionCut_by_rect.setCheckable(True)
        self.mplactionCut_by_rect.setFlat(True)
        self.mplactionCut_by_rect.setObjectName(_fromUtf8("mplactionCut_by_rect"))
        self.horizontalLayout_22.addWidget(self.mplactionCut_by_rect)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_22.addItem(spacerItem)
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_22.addWidget(self.label_2)
        self.mplhorizontalSlider = QtGui.QSlider(Form)
        self.mplhorizontalSlider.setProperty("value", 3)
        self.mplhorizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.mplhorizontalSlider.setObjectName(_fromUtf8("mplhorizontalSlider"))
        self.horizontalLayout_22.addWidget(self.mplhorizontalSlider)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_22.addItem(spacerItem1)
        self.autoScale = QtGui.QCheckBox(Form)
        self.autoScale.setObjectName(_fromUtf8("autoScale"))
        self.horizontalLayout_22.addWidget(self.autoScale)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_22.addItem(spacerItem2)
        self.label = QtGui.QLabel(Form)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout_22.addWidget(self.label)
        self.xLogScale = QtGui.QCheckBox(Form)
        self.xLogScale.setObjectName(_fromUtf8("xLogScale"))
        self.horizontalLayout_22.addWidget(self.xLogScale)
        self.yLogScale = QtGui.QCheckBox(Form)
        self.yLogScale.setObjectName(_fromUtf8("yLogScale"))
        self.horizontalLayout_22.addWidget(self.yLogScale)
        self.verticalLayout.addLayout(self.horizontalLayout_22)

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

    def retranslateUi(self, Form):
        Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
        self.mplactionCut_by_line.setText(QtGui.QApplication.translate("Form", "Лінія", None, QtGui.QApplication.UnicodeUTF8))
        self.mplactionCut_by_rect.setText(QtGui.QApplication.translate("Form", "Прямокутник", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("Form", "Розмір точок: ", None, QtGui.QApplication.UnicodeUTF8))
        self.autoScale.setText(QtGui.QApplication.translate("Form", "Автомасштаб", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("Form", "Log10:", None, QtGui.QApplication.UnicodeUTF8))
        self.xLogScale.setText(QtGui.QApplication.translate("Form", "X", None, QtGui.QApplication.UnicodeUTF8))
        self.yLogScale.setText(QtGui.QApplication.translate("Form", "Y", None, QtGui.QApplication.UnicodeUTF8))
开发者ID:xkronosua,项目名称:QTR,代码行数:71,代码来源:qcut.py


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