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


Python MatplotlibWidget.sizePolicy方法代码示例

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


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

示例1: Ui_MainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import sizePolicy [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 sizePolicy [as 别名]
class Ui_demo_qt(object):
    def setupUi(self, demo_qt):
        demo_qt.setObjectName(_fromUtf8("demo_qt"))
        demo_qt.resize(1062, 680)
        self.centralWidget = QtGui.QWidget(demo_qt)
        self.centralWidget.setObjectName(_fromUtf8("centralWidget"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.centralWidget)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.AOMode = QtGui.QLabel(self.centralWidget)
        font = QtGui.QFont()
        font.setItalic(True)
        self.AOMode.setFont(font)
        self.AOMode.setObjectName(_fromUtf8("AOMode"))
        self.gridLayout_2.addWidget(self.AOMode, 0, 1, 1, 2)
        self.loadfitsButton = QtGui.QToolButton(self.centralWidget)
        self.loadfitsButton.setObjectName(_fromUtf8("loadfitsButton"))
        self.gridLayout_2.addWidget(self.loadfitsButton, 1, 0, 1, 1)
        self.textEdit = QtGui.QTextEdit(self.centralWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.textEdit.sizePolicy().hasHeightForWidth())
        self.textEdit.setSizePolicy(sizePolicy)
        self.textEdit.setMaximumSize(QtCore.QSize(16777215, 50))
        self.textEdit.setObjectName(_fromUtf8("textEdit"))
        self.gridLayout_2.addWidget(self.textEdit, 1, 1, 1, 1)
        self.okButton = QtGui.QPushButton(self.centralWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.okButton.sizePolicy().hasHeightForWidth())
        self.okButton.setSizePolicy(sizePolicy)
        self.okButton.setObjectName(_fromUtf8("okButton"))
        self.gridLayout_2.addWidget(self.okButton, 1, 2, 1, 1)
        self.ComboBox = QtGui.QComboBox(self.centralWidget)
        self.ComboBox.setObjectName(_fromUtf8("ComboBox"))
        self.gridLayout_2.addWidget(self.ComboBox, 1, 3, 1, 1)
        self.resetCombobox = QtGui.QPushButton(self.centralWidget)
        self.resetCombobox.setObjectName(_fromUtf8("resetCombobox"))
        self.gridLayout_2.addWidget(self.resetCombobox, 2, 3, 1, 1)
        self.horizontalLayout.addLayout(self.gridLayout_2)
        spacerItem = QtGui.QSpacerItem(309, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.verticalLayout_5.addLayout(self.horizontalLayout)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.pushButton = QtGui.QPushButton(self.centralWidget)
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.gridLayout_3.addWidget(self.pushButton, 0, 0, 1, 1)
        self.twoStateButton = QtGui.QPushButton(self.centralWidget)
        self.twoStateButton.setCheckable(False)
        self.twoStateButton.setObjectName(_fromUtf8("twoStateButton"))
        self.gridLayout_3.addWidget(self.twoStateButton, 1, 0, 1, 1)
        self.winNumber = QtGui.QSpinBox(self.centralWidget)
        self.winNumber.setMinimum(1)
        self.winNumber.setMaximum(2)
        self.winNumber.setProperty("value", 1)
        self.winNumber.setObjectName(_fromUtf8("winNumber"))
        self.gridLayout_3.addWidget(self.winNumber, 2, 1, 1, 1)
        self.plotRandom = QtGui.QPushButton(self.centralWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.plotRandom.sizePolicy().hasHeightForWidth())
        self.plotRandom.setSizePolicy(sizePolicy)
        self.plotRandom.setObjectName(_fromUtf8("plotRandom"))
        self.gridLayout_3.addWidget(self.plotRandom, 2, 0, 1, 1)
        self.horizontalLayout_2.addLayout(self.gridLayout_3)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.verticalLayout_4.addLayout(self.horizontalLayout_2)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem2)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        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)
#.........这里部分代码省略.........
开发者ID:soylentdeen,项目名称:BlurryApple,代码行数:103,代码来源:demo_ui.py

示例3: Ui_MainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import sizePolicy [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1157, 635)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.groupBox = QtGui.QGroupBox(self.centralwidget)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtGui.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.co2Source = QtGui.QSlider(self.groupBox)
        self.co2Source.setOrientation(QtCore.Qt.Vertical)
        self.co2Source.setTickPosition(QtGui.QSlider.TicksBelow)
        self.co2Source.setObjectName("co2Source")
        self.verticalLayout.addWidget(self.co2Source)
        self.co2SourceLabel = QtGui.QLabel(self.groupBox)
        self.co2SourceLabel.setObjectName("co2SourceLabel")
        self.verticalLayout.addWidget(self.co2SourceLabel)
        self.co2SourceValue = QtGui.QLineEdit(self.groupBox)
        self.co2SourceValue.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.co2SourceValue.sizePolicy().hasHeightForWidth())
        self.co2SourceValue.setSizePolicy(sizePolicy)
        self.co2SourceValue.setObjectName("co2SourceValue")
        self.verticalLayout.addWidget(self.co2SourceValue)
        self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.co2Sink = QtGui.QSlider(self.groupBox)
        self.co2Sink.setOrientation(QtCore.Qt.Vertical)
        self.co2Sink.setTickPosition(QtGui.QSlider.TicksBelow)
        self.co2Sink.setObjectName("co2Sink")
        self.verticalLayout_2.addWidget(self.co2Sink)
        self.co2SinkLabel = QtGui.QLabel(self.groupBox)
        self.co2SinkLabel.setObjectName("co2SinkLabel")
        self.verticalLayout_2.addWidget(self.co2SinkLabel)
        self.co2SinkValue = QtGui.QLineEdit(self.groupBox)
        self.co2SinkValue.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.co2SinkValue.sizePolicy().hasHeightForWidth())
        self.co2SinkValue.setSizePolicy(sizePolicy)
        self.co2SinkValue.setObjectName("co2SinkValue")
        self.verticalLayout_2.addWidget(self.co2SinkValue)
        self.gridLayout.addLayout(self.verticalLayout_2, 0, 1, 1, 1)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.protonSource = QtGui.QSlider(self.groupBox)
        self.protonSource.setOrientation(QtCore.Qt.Vertical)
        self.protonSource.setTickPosition(QtGui.QSlider.TicksBelow)
        self.protonSource.setObjectName("protonSource")
        self.verticalLayout_3.addWidget(self.protonSource)
        self.protonSourceLabel = QtGui.QLabel(self.groupBox)
        self.protonSourceLabel.setObjectName("protonSourceLabel")
        self.verticalLayout_3.addWidget(self.protonSourceLabel)
        self.protonSourceValue = QtGui.QLineEdit(self.groupBox)
        self.protonSourceValue.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.protonSourceValue.sizePolicy().hasHeightForWidth())
        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())
#.........这里部分代码省略.........
开发者ID:codecurve,项目名称:pH-PyApp,代码行数:103,代码来源:mainui.py

示例4: Ui_VelocityWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import sizePolicy [as 别名]
class Ui_VelocityWindow(object):
    def setupUi(self, VelocityWindow):
        VelocityWindow.setObjectName("VelocityWindow")
        VelocityWindow.resize(1014, 679)
        self.hbox_VelocityWindow = QtWidgets.QHBoxLayout(VelocityWindow)
        self.hbox_VelocityWindow.setObjectName("hbox_VelocityWindow")
        self.grid_settings = QtWidgets.QGridLayout()
        self.grid_settings.setHorizontalSpacing(6)
        self.grid_settings.setObjectName("grid_settings")
        self.combo_box_select_gas = QtWidgets.QComboBox(VelocityWindow)
        self.combo_box_select_gas.setMinimumContentsLength(0)
        self.combo_box_select_gas.setObjectName("combo_box_select_gas")
        self.combo_box_select_gas.addItem("")
        self.combo_box_select_gas.addItem("")
        self.combo_box_select_gas.addItem("")
        self.combo_box_select_gas.addItem("")
        self.combo_box_select_gas.addItem("")
        self.combo_box_select_gas.addItem("")
        self.combo_box_select_gas.addItem("")
        self.grid_settings.addWidget(self.combo_box_select_gas, 0, 1, 1, 1)
        self.label_select_temp = QtWidgets.QLabel(VelocityWindow)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_select_temp.setFont(font)
        self.label_select_temp.setObjectName("label_select_temp")
        self.grid_settings.addWidget(self.label_select_temp, 1, 0, 1, 1)
        self.hbox_input_temp = QtWidgets.QHBoxLayout()
        self.hbox_input_temp.setObjectName("hbox_input_temp")
        self.input_temp = QtWidgets.QLineEdit(VelocityWindow)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.input_temp.sizePolicy().hasHeightForWidth())
        self.input_temp.setSizePolicy(sizePolicy)
        self.input_temp.setObjectName("input_temp")
        self.hbox_input_temp.addWidget(self.input_temp)
        self.label_input_temp = QtWidgets.QLabel(VelocityWindow)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_input_temp.sizePolicy().hasHeightForWidth())
        self.label_input_temp.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_input_temp.setFont(font)
        self.label_input_temp.setObjectName("label_input_temp")
        self.hbox_input_temp.addWidget(self.label_input_temp)
        self.grid_settings.addLayout(self.hbox_input_temp, 1, 1, 1, 1)
        self.label_select_press = QtWidgets.QLabel(VelocityWindow)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_select_press.setFont(font)
        self.label_select_press.setObjectName("label_select_press")
        self.grid_settings.addWidget(self.label_select_press, 2, 0, 1, 1)
        self.hbox_input_press = QtWidgets.QHBoxLayout()
        self.hbox_input_press.setObjectName("hbox_input_press")
        self.input_press = QtWidgets.QLineEdit(VelocityWindow)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.input_press.sizePolicy().hasHeightForWidth())
        self.input_press.setSizePolicy(sizePolicy)
        self.input_press.setObjectName("input_press")
        self.hbox_input_press.addWidget(self.input_press)
        self.label_input_press = QtWidgets.QLabel(VelocityWindow)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_input_press.sizePolicy().hasHeightForWidth())
        self.label_input_press.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_input_press.setFont(font)
        self.label_input_press.setObjectName("label_input_press")
        self.hbox_input_press.addWidget(self.label_input_press)
        self.grid_settings.addLayout(self.hbox_input_press, 2, 1, 1, 1)
        self.label_select_type_of_data = QtWidgets.QLabel(VelocityWindow)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_select_type_of_data.setFont(font)
        self.label_select_type_of_data.setObjectName("label_select_type_of_data")
        self.grid_settings.addWidget(self.label_select_type_of_data, 3, 0, 1, 1)
        self.select_data_type = QtWidgets.QTabWidget(VelocityWindow)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.select_data_type.sizePolicy().hasHeightForWidth())
        self.select_data_type.setSizePolicy(sizePolicy)
        self.select_data_type.setObjectName("select_data_type")
        self.tab_isobaric = QtWidgets.QWidget()
        self.tab_isobaric.setObjectName("tab_isobaric")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.tab_isobaric)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.vbox_select_isobaric = QtWidgets.QVBoxLayout()
        self.vbox_select_isobaric.setObjectName("vbox_select_isobaric")
#.........这里部分代码省略.........
开发者ID:TvviNN,项目名称:target-control,代码行数:103,代码来源:velocity_window_ui.py

示例5: Ui_MainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import sizePolicy [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(883, 616)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.chartTab = QtGui.QWidget()
        self.chartTab.setObjectName(_fromUtf8("chartTab"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.chartTab)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.oneDayToolButton = QtGui.QToolButton(self.chartTab)
        self.oneDayToolButton.setCheckable(True)
        self.oneDayToolButton.setObjectName(_fromUtf8("oneDayToolButton"))
        self.buttonGroup = QtGui.QButtonGroup(MainWindow)
        self.buttonGroup.setObjectName(_fromUtf8("buttonGroup"))
        self.buttonGroup.addButton(self.oneDayToolButton)
        self.horizontalLayout_2.addWidget(self.oneDayToolButton)
        self.fiveDayToolButton = QtGui.QToolButton(self.chartTab)
        self.fiveDayToolButton.setCheckable(True)
        self.fiveDayToolButton.setObjectName(_fromUtf8("fiveDayToolButton"))
        self.buttonGroup.addButton(self.fiveDayToolButton)
        self.horizontalLayout_2.addWidget(self.fiveDayToolButton)
        self.oneMonthToolButton = QtGui.QToolButton(self.chartTab)
        self.oneMonthToolButton.setCheckable(True)
        self.oneMonthToolButton.setObjectName(_fromUtf8("oneMonthToolButton"))
        self.buttonGroup.addButton(self.oneMonthToolButton)
        self.horizontalLayout_2.addWidget(self.oneMonthToolButton)
        self.threeMonthToolButton = QtGui.QToolButton(self.chartTab)
        self.threeMonthToolButton.setCheckable(True)
        self.threeMonthToolButton.setObjectName(_fromUtf8("threeMonthToolButton"))
        self.buttonGroup.addButton(self.threeMonthToolButton)
        self.horizontalLayout_2.addWidget(self.threeMonthToolButton)
        self.sixMonthToolButton = QtGui.QToolButton(self.chartTab)
        self.sixMonthToolButton.setCheckable(True)
        self.sixMonthToolButton.setObjectName(_fromUtf8("sixMonthToolButton"))
        self.buttonGroup.addButton(self.sixMonthToolButton)
        self.horizontalLayout_2.addWidget(self.sixMonthToolButton)
        self.oneYearToolButton = QtGui.QToolButton(self.chartTab)
        self.oneYearToolButton.setCheckable(True)
        self.oneYearToolButton.setObjectName(_fromUtf8("oneYearToolButton"))
        self.buttonGroup.addButton(self.oneYearToolButton)
        self.horizontalLayout_2.addWidget(self.oneYearToolButton)
        self.twoYearToolButton = QtGui.QToolButton(self.chartTab)
        self.twoYearToolButton.setCheckable(True)
        self.twoYearToolButton.setObjectName(_fromUtf8("twoYearToolButton"))
        self.buttonGroup.addButton(self.twoYearToolButton)
        self.horizontalLayout_2.addWidget(self.twoYearToolButton)
        self.fiveYearToolButton = QtGui.QToolButton(self.chartTab)
        self.fiveYearToolButton.setCheckable(True)
        self.fiveYearToolButton.setObjectName(_fromUtf8("fiveYearToolButton"))
        self.buttonGroup.addButton(self.fiveYearToolButton)
        self.horizontalLayout_2.addWidget(self.fiveYearToolButton)
        self.maxToolButton = QtGui.QToolButton(self.chartTab)
        self.maxToolButton.setCheckable(True)
        self.maxToolButton.setChecked(True)
        self.maxToolButton.setObjectName(_fromUtf8("maxToolButton"))
        self.buttonGroup.addButton(self.maxToolButton)
        self.horizontalLayout_2.addWidget(self.maxToolButton)
        self.line_2 = QtGui.QFrame(self.chartTab)
        self.line_2.setFrameShape(QtGui.QFrame.VLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.horizontalLayout_2.addWidget(self.line_2)
        self.styleToolButton = QtGui.QToolButton(self.chartTab)
        self.styleToolButton.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
        self.styleToolButton.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.styleToolButton.setPopupMode(QtGui.QToolButton.InstantPopup)
        self.styleToolButton.setArrowType(QtCore.Qt.NoArrow)
        self.styleToolButton.setObjectName(_fromUtf8("styleToolButton"))
        self.horizontalLayout_2.addWidget(self.styleToolButton)
        self.line_3 = QtGui.QFrame(self.chartTab)
        self.line_3.setFrameShape(QtGui.QFrame.VLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.horizontalLayout_2.addWidget(self.line_3)
        self.indicatorToolButton = QtGui.QToolButton(self.chartTab)
        self.indicatorToolButton.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.indicatorToolButton.setPopupMode(QtGui.QToolButton.InstantPopup)
        self.indicatorToolButton.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly)
        self.indicatorToolButton.setObjectName(_fromUtf8("indicatorToolButton"))
        self.horizontalLayout_2.addWidget(self.indicatorToolButton)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.loadQuoteButton = QtGui.QPushButton(self.chartTab)
        self.loadQuoteButton.setObjectName(_fromUtf8("loadQuoteButton"))
        self.horizontalLayout_2.addWidget(self.loadQuoteButton)
        self.pushButton = QtGui.QPushButton(self.chartTab)
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.horizontalLayout_2.addWidget(self.pushButton)
        self.verticalLayout_3.addLayout(self.horizontalLayout_2)
        self.matplotlibWidget = MatplotlibWidget(self.chartTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
#.........这里部分代码省略.........
开发者ID:vodkabuaa,项目名称:QuantDigger,代码行数:103,代码来源:mainwindow_ui.py


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