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


Python MatplotlibWidget.setMinimumSize方法代码示例

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


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

示例1: Ui_MainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setMinimumSize [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(880, 661)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.tab)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.comboBox_categories = QtGui.QComboBox(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.comboBox_categories.sizePolicy().hasHeightForWidth())
        self.comboBox_categories.setSizePolicy(sizePolicy)
        self.comboBox_categories.setMinimumSize(QtCore.QSize(180, 0))
        self.comboBox_categories.setMaximumSize(QtCore.QSize(500000, 16777215))
        self.comboBox_categories.setObjectName("comboBox_categories")
        self.horizontalLayout.addWidget(self.comboBox_categories)
        self.lineEdit_search = QtGui.QLineEdit(self.tab)
        self.lineEdit_search.setMaximumSize(QtCore.QSize(2000000, 16777215))
        self.lineEdit_search.setObjectName("lineEdit_search")
        self.horizontalLayout.addWidget(self.lineEdit_search)
        self.pushButton_search = QtGui.QPushButton(self.tab)
        self.pushButton_search.setMaximumSize(QtCore.QSize(1000000, 16777215))
        self.pushButton_search.setObjectName("pushButton_search")
        self.horizontalLayout.addWidget(self.pushButton_search)
        self.verticalLayout_5.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.splitter_2 = QtGui.QSplitter(self.tab)
        self.splitter_2.setOrientation(QtCore.Qt.Vertical)
        self.splitter_2.setObjectName("splitter_2")
        self.splitter = QtGui.QSplitter(self.splitter_2)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.tableWidget_overview = QtGui.QTableWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tableWidget_overview.sizePolicy().hasHeightForWidth())
        self.tableWidget_overview.setSizePolicy(sizePolicy)
        self.tableWidget_overview.setMinimumSize(QtCore.QSize(250, 200))
        self.tableWidget_overview.setMaximumSize(QtCore.QSize(2000000, 2000000))
        self.tableWidget_overview.setObjectName("tableWidget_overview")
        self.tableWidget_overview.setColumnCount(0)
        self.tableWidget_overview.setRowCount(0)
        self.mpl_widget = MatplotlibWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mpl_widget.sizePolicy().hasHeightForWidth())
        self.mpl_widget.setSizePolicy(sizePolicy)
        self.mpl_widget.setMinimumSize(QtCore.QSize(200, 200))
        self.mpl_widget.setObjectName("mpl_widget")
        self.widget = QtGui.QWidget(self.splitter_2)
        self.widget.setObjectName("widget")
        self.verticalLayout = QtGui.QVBoxLayout(self.widget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtGui.QLabel(self.widget)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.tableWidget_userSelection = QtGui.QTableWidget(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tableWidget_userSelection.sizePolicy().hasHeightForWidth())
        self.tableWidget_userSelection.setSizePolicy(sizePolicy)
        self.tableWidget_userSelection.setMinimumSize(QtCore.QSize(500, 200))
        self.tableWidget_userSelection.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.tableWidget_userSelection.setObjectName("tableWidget_userSelection")
        self.tableWidget_userSelection.setColumnCount(0)
        self.tableWidget_userSelection.setRowCount(0)
        self.verticalLayout.addWidget(self.tableWidget_userSelection)
        self.horizontalLayout_2.addWidget(self.splitter_2)
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.frame = QtGui.QFrame(self.tab)
        self.frame.setMaximumSize(QtCore.QSize(160, 16777215))
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.frame)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.radioButton_singleMeal = QtGui.QRadioButton(self.frame)
        self.radioButton_singleMeal.setChecked(True)
        self.radioButton_singleMeal.setObjectName("radioButton_singleMeal")
        self.verticalLayout_2.addWidget(self.radioButton_singleMeal)
#.........这里部分代码省略.........
开发者ID:abieler,项目名称:foodOpt,代码行数:103,代码来源:ui_foodOptimizer.py

示例2: Ui_demo_qt

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setMinimumSize [as 别名]

#.........这里部分代码省略.........
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.AOMode_2 = QtGui.QLabel(self.centralWidget)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.AOMode_2.setFont(font)
        self.AOMode_2.setObjectName(_fromUtf8("AOMode_2"))
        self.verticalLayout_2.addWidget(self.AOMode_2)
        self.radioButton_1 = QtGui.QRadioButton(self.centralWidget)
        self.radioButton_1.setObjectName(_fromUtf8("radioButton_1"))
        self.verticalLayout_2.addWidget(self.radioButton_1)
        self.radioButton_2 = QtGui.QRadioButton(self.centralWidget)
        self.radioButton_2.setObjectName(_fromUtf8("radioButton_2"))
        self.verticalLayout_2.addWidget(self.radioButton_2)
        self.radioButton_3 = QtGui.QRadioButton(self.centralWidget)
        self.radioButton_3.setObjectName(_fromUtf8("radioButton_3"))
        self.verticalLayout_2.addWidget(self.radioButton_3)
        self.radioButton_4 = QtGui.QRadioButton(self.centralWidget)
        self.radioButton_4.setObjectName(_fromUtf8("radioButton_4"))
        self.verticalLayout_2.addWidget(self.radioButton_4)
        self.horizontalLayout_3.addLayout(self.verticalLayout_2)
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem3)
        self.verticalLayout_4.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_4.addLayout(self.verticalLayout_4)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.window2 = MatplotlibWidget(self.centralWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.window2.sizePolicy().hasHeightForWidth())
        self.window2.setSizePolicy(sizePolicy)
        self.window2.setMinimumSize(QtCore.QSize(200, 200))
        self.window2.setObjectName(_fromUtf8("window2"))
        self.WFSUsed_2 = QtGui.QLabel(self.window2)
        self.WFSUsed_2.setGeometry(QtCore.QRect(0, 0, 99, 26))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.WFSUsed_2.setFont(font)
        self.WFSUsed_2.setObjectName(_fromUtf8("WFSUsed_2"))
        self.gridLayout.addWidget(self.window2, 0, 1, 1, 1)
        self.window1 = MatplotlibWidget(self.centralWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.window1.sizePolicy().hasHeightForWidth())
        self.window1.setSizePolicy(sizePolicy)
        self.window1.setMinimumSize(QtCore.QSize(200, 200))
        self.window1.setObjectName(_fromUtf8("window1"))
        self.WFSUsed = QtGui.QLabel(self.window1)
        self.WFSUsed.setGeometry(QtCore.QRect(0, 0, 99, 26))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.WFSUsed.setFont(font)
        self.WFSUsed.setObjectName(_fromUtf8("WFSUsed"))
        self.gridLayout.addWidget(self.window1, 0, 0, 1, 1)
        self.horizontalLayout_4.addLayout(self.gridLayout)
        self.verticalLayout_5.addLayout(self.horizontalLayout_4)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem4)
        self.verticalLayout = QtGui.QVBoxLayout()
开发者ID:soylentdeen,项目名称:BlurryApple,代码行数:70,代码来源:demo_ui.py

示例3: Ui_MainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setMinimumSize [as 别名]

#.........这里部分代码省略.........
        self.protonSourceValue.setSizePolicy(sizePolicy)
        self.protonSourceValue.setObjectName("protonSourceValue")
        self.verticalLayout_3.addWidget(self.protonSourceValue)
        self.gridLayout.addLayout(self.verticalLayout_3, 0, 2, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.protonLevelPurge = QtGui.QPushButton(self.groupBox)
        self.protonLevelPurge.setObjectName("protonLevelPurge")
        self.horizontalLayout.addWidget(self.protonLevelPurge)
        self.protonPurgeAmount = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.protonPurgeAmount.sizePolicy().hasHeightForWidth())
        self.protonPurgeAmount.setSizePolicy(sizePolicy)
        self.protonPurgeAmount.setObjectName("protonPurgeAmount")
        self.horizontalLayout.addWidget(self.protonPurgeAmount)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 3)
        self.horizontalLayout_3.addWidget(self.groupBox)
        self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.plotArea = MatplotlibWidget(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(2)
        sizePolicy.setHeightForWidth(self.plotArea.sizePolicy().hasHeightForWidth())
        self.plotArea.setSizePolicy(sizePolicy)
        self.plotArea.setMinimumSize(QtCore.QSize(200, 100))
        self.plotArea.setObjectName("plotArea")
        self.verticalLayout_4.addWidget(self.plotArea)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.simulateButton = QtGui.QPushButton(self.groupBox_2)
        self.simulateButton.setMinimumSize(QtCore.QSize(80, 0))
        self.simulateButton.setObjectName("simulateButton")
        self.horizontalLayout_2.addWidget(self.simulateButton)
        self.resetButton = QtGui.QPushButton(self.groupBox_2)
        self.resetButton.setObjectName("resetButton")
        self.horizontalLayout_2.addWidget(self.resetButton)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.verticalLayout_4.addLayout(self.horizontalLayout_2)
        self.logText = QtGui.QPlainTextEdit(self.groupBox_2)
        self.logText.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.logText.sizePolicy().hasHeightForWidth())
        self.logText.setSizePolicy(sizePolicy)
        self.logText.setObjectName("logText")
        self.verticalLayout_4.addWidget(self.logText)
        self.verticalLayout_5.addLayout(self.verticalLayout_4)
        self.horizontalLayout_3.addWidget(self.groupBox_2)
        self.groupBox_3 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.widget = ZincWidget(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(2)
开发者ID:codecurve,项目名称:pH-PyApp,代码行数:70,代码来源:mainui.py

示例4: Ui_VelocityWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setMinimumSize [as 别名]

#.........这里部分代码省略.........
        self.label_select_p_low = QtWidgets.QLabel(self.tab_isothermal)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_select_p_low.setFont(font)
        self.label_select_p_low.setObjectName("label_select_p_low")
        self.grid_select_isothermal.addWidget(self.label_select_p_low, 0, 0, 1, 1)
        self.input_p_low = QtWidgets.QLineEdit(self.tab_isothermal)
        self.input_p_low.setObjectName("input_p_low")
        self.grid_select_isothermal.addWidget(self.input_p_low, 0, 1, 1, 1)
        self.label_input_p_low = QtWidgets.QLabel(self.tab_isothermal)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_input_p_low.setFont(font)
        self.label_input_p_low.setObjectName("label_input_p_low")
        self.grid_select_isothermal.addWidget(self.label_input_p_low, 0, 2, 1, 1)
        self.label_select_p_high = QtWidgets.QLabel(self.tab_isothermal)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_select_p_high.setFont(font)
        self.label_select_p_high.setObjectName("label_select_p_high")
        self.grid_select_isothermal.addWidget(self.label_select_p_high, 1, 0, 1, 1)
        self.input_p_high = QtWidgets.QLineEdit(self.tab_isothermal)
        self.input_p_high.setObjectName("input_p_high")
        self.grid_select_isothermal.addWidget(self.input_p_high, 1, 1, 1, 1)
        self.label_input_p_high = QtWidgets.QLabel(self.tab_isothermal)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_input_p_high.setFont(font)
        self.label_input_p_high.setObjectName("label_input_p_high")
        self.grid_select_isothermal.addWidget(self.label_input_p_high, 1, 2, 1, 1)
        self.vbox_select_isothermal.addLayout(self.grid_select_isothermal)
        self.verticalLayout_4.addLayout(self.vbox_select_isothermal)
        self.select_data_type.addTab(self.tab_isothermal, "")
        self.grid_settings.addWidget(self.select_data_type, 3, 1, 1, 1)
        self.label_select_gas = QtWidgets.QLabel(VelocityWindow)
        self.label_select_gas.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_select_gas.sizePolicy().hasHeightForWidth())
        self.label_select_gas.setSizePolicy(sizePolicy)
        self.label_select_gas.setBaseSize(QtCore.QSize(0, 0))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_select_gas.setFont(font)
        self.label_select_gas.setObjectName("label_select_gas")
        self.grid_settings.addWidget(self.label_select_gas, 0, 0, 1, 1)
        self.button_calculate = QtWidgets.QPushButton(VelocityWindow)
        self.button_calculate.setObjectName("button_calculate")
        self.grid_settings.addWidget(self.button_calculate, 4, 1, 1, 1)
        self.hbox_VelocityWindow.addLayout(self.grid_settings)
        self.mpl_widget = MatplotlibWidget(VelocityWindow)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mpl_widget.sizePolicy().hasHeightForWidth())
        self.mpl_widget.setSizePolicy(sizePolicy)
        self.mpl_widget.setMinimumSize(QtCore.QSize(400, 400))
        self.mpl_widget.setObjectName("mpl_widget")
        self.hbox_VelocityWindow.addWidget(self.mpl_widget)

        self.retranslateUi(VelocityWindow)
        self.combo_box_select_gas.setCurrentIndex(0)
        self.select_data_type.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(VelocityWindow)

    def retranslateUi(self, VelocityWindow):
        _translate = QtCore.QCoreApplication.translate
        VelocityWindow.setWindowTitle(_translate("VelocityWindow", "Velocity Calculator"))
        self.combo_box_select_gas.setItemText(0, _translate("VelocityWindow", "Hydrogen"))
        self.combo_box_select_gas.setItemText(1, _translate("VelocityWindow", "Nitrogen"))
        self.combo_box_select_gas.setItemText(2, _translate("VelocityWindow", "Helium"))
        self.combo_box_select_gas.setItemText(3, _translate("VelocityWindow", "Neon"))
        self.combo_box_select_gas.setItemText(4, _translate("VelocityWindow", "Argon"))
        self.combo_box_select_gas.setItemText(5, _translate("VelocityWindow", "Krypton"))
        self.combo_box_select_gas.setItemText(6, _translate("VelocityWindow", "Xenon"))
        self.label_select_temp.setText(_translate("VelocityWindow", "Select source temperature:"))
        self.label_input_temp.setText(_translate("VelocityWindow", "Kelvin"))
        self.label_select_press.setText(_translate("VelocityWindow", "Select source pressure:"))
        self.label_input_press.setText(_translate("VelocityWindow", "bar"))
        self.label_select_type_of_data.setText(_translate("VelocityWindow", "Select type of data:"))
        self.radio_select_data_type_isobaric.setText(_translate("VelocityWindow", "Select"))
        self.label_input_t_low.setText(_translate("VelocityWindow", "Kelvin"))
        self.label_select_t_low.setText(_translate("VelocityWindow", "Select minimum temperature value:"))
        self.label_select_t_high.setText(_translate("VelocityWindow", "Select maximum temperature value:"))
        self.label_input_t_high.setText(_translate("VelocityWindow", "Kelvin"))
        self.select_data_type.setTabText(self.select_data_type.indexOf(self.tab_isobaric), _translate("VelocityWindow", "Isobaric"))
        self.radio_select_data_type_isothermal.setText(_translate("VelocityWindow", "Select"))
        self.label_select_p_low.setText(_translate("VelocityWindow", "Select minimum pressure value:"))
        self.label_input_p_low.setText(_translate("VelocityWindow", "bar"))
        self.label_select_p_high.setText(_translate("VelocityWindow", "Select maximum pressure value:"))
        self.label_input_p_high.setText(_translate("VelocityWindow", "bar"))
        self.select_data_type.setTabText(self.select_data_type.indexOf(self.tab_isothermal), _translate("VelocityWindow", "Isothermal"))
        self.label_select_gas.setText(_translate("VelocityWindow", "Select gas species:"))
        self.button_calculate.setText(_translate("VelocityWindow", "Calculate !"))
开发者ID:TvviNN,项目名称:target-control,代码行数:104,代码来源:velocity_window_ui.py

示例5: Ui_FrequencyResponse

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setMinimumSize [as 别名]
class Ui_FrequencyResponse(object):
    def setupUi(self, FrequencyResponse):
        FrequencyResponse.setObjectName(_fromUtf8("FrequencyResponse"))
        FrequencyResponse.resize(801, 608)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/Icons/frequency_response.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        FrequencyResponse.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(FrequencyResponse)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.frame = QtGui.QFrame(self.centralwidget)
        self.frame.setMinimumSize(QtCore.QSize(281, 0))
        self.frame.setMaximumSize(QtCore.QSize(281, 16777215))
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.frame)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.toolBox = QtGui.QToolBox(self.frame)
        self.toolBox.setObjectName(_fromUtf8("toolBox"))
        self.page = QtGui.QWidget()
        self.page.setGeometry(QtCore.QRect(0, 0, 253, 274))
        self.page.setObjectName(_fromUtf8("page"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.page)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.horizontalLayout_26 = QtGui.QHBoxLayout()
        self.horizontalLayout_26.setObjectName(_fromUtf8("horizontalLayout_26"))
        self.label_28 = QtGui.QLabel(self.page)
        self.label_28.setMaximumSize(QtCore.QSize(51, 16777215))
        self.label_28.setObjectName(_fromUtf8("label_28"))
        self.horizontalLayout_26.addWidget(self.label_28)
        self.inputDevices = QtGui.QComboBox(self.page)
        self.inputDevices.setObjectName(_fromUtf8("inputDevices"))
        self.horizontalLayout_26.addWidget(self.inputDevices)
        self.verticalLayout_4.addLayout(self.horizontalLayout_26)
        self.horizontalLayout_27 = QtGui.QHBoxLayout()
        self.horizontalLayout_27.setObjectName(_fromUtf8("horizontalLayout_27"))
        self.label_30 = QtGui.QLabel(self.page)
        self.label_30.setMaximumSize(QtCore.QSize(51, 16))
        self.label_30.setObjectName(_fromUtf8("label_30"))
        self.horizontalLayout_27.addWidget(self.label_30)
        self.outputDevices = QtGui.QComboBox(self.page)
        self.outputDevices.setObjectName(_fromUtf8("outputDevices"))
        self.horizontalLayout_27.addWidget(self.outputDevices)
        self.verticalLayout_4.addLayout(self.horizontalLayout_27)
        spacerItem = QtGui.QSpacerItem(20, 211, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/Icons/speaker.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.toolBox.addItem(self.page, icon1, _fromUtf8(""))
        self.page_2 = QtGui.QWidget()
        self.page_2.setGeometry(QtCore.QRect(0, 0, 253, 274))
        self.page_2.setObjectName(_fromUtf8("page_2"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.page_2)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.signalType = QtGui.QComboBox(self.page_2)
        self.signalType.setObjectName(_fromUtf8("signalType"))
        self.signalType.addItem(_fromUtf8(""))
        self.signalType.addItem(_fromUtf8(""))
        self.signalType.addItem(_fromUtf8(""))
        self.signalType.addItem(_fromUtf8(""))
        self.verticalLayout_5.addWidget(self.signalType)
        self.signalOptions = QtGui.QStackedWidget(self.page_2)
        self.signalOptions.setObjectName(_fromUtf8("signalOptions"))
        self.page_5 = QtGui.QWidget()
        self.page_5.setObjectName(_fromUtf8("page_5"))
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.page_5)
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.label_4 = QtGui.QLabel(self.page_5)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout_9.addWidget(self.label_4)
        self.numTaps = QtGui.QSpinBox(self.page_5)
        self.numTaps.setObjectName(_fromUtf8("numTaps"))
        self.horizontalLayout_9.addWidget(self.numTaps)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_9.addItem(spacerItem1)
        self.verticalLayout_7.addLayout(self.horizontalLayout_9)
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.label_23 = QtGui.QLabel(self.page_5)
        self.label_23.setObjectName(_fromUtf8("label_23"))
        self.horizontalLayout_8.addWidget(self.label_23)
        self.numBursts = QtGui.QSpinBox(self.page_5)
        self.numBursts.setObjectName(_fromUtf8("numBursts"))
        self.horizontalLayout_8.addWidget(self.numBursts)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_8.addItem(spacerItem2)
        self.verticalLayout_7.addLayout(self.horizontalLayout_8)
        self.signalOptions.addWidget(self.page_5)
        self.page_6 = QtGui.QWidget()
        self.page_6.setObjectName(_fromUtf8("page_6"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.page_6)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
#.........这里部分代码省略.........
开发者ID:lancejenkin-uct,项目名称:RapidAlpha,代码行数:103,代码来源:FrequencyResponse.py


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