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


Python MplWidget.setMinimumSize方法代码示例

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


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

示例1: Ui_Dialog

# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import setMinimumSize [as 别名]
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(1232, 727)
        Dialog.setMinimumSize(QtCore.QSize(1232, 727))
        Dialog.setMaximumSize(QtCore.QSize(1232, 727))
        self.g_naglowek = QtGui.QGroupBox(Dialog)
        self.g_naglowek.setGeometry(QtCore.QRect(10, 40, 281, 681))
        self.g_naglowek.setMinimumSize(QtCore.QSize(281, 681))
        self.g_naglowek.setObjectName(_fromUtf8("g_naglowek"))
        self.n_dane = QtGui.QTableWidget(self.g_naglowek)
        self.n_dane.setGeometry(QtCore.QRect(10, 20, 261, 651))
        self.n_dane.setObjectName(_fromUtf8("n_dane"))
        self.n_dane.setColumnCount(0)
        self.n_dane.setRowCount(0)
        self.g_pomiary = QtGui.QGroupBox(Dialog)
        self.g_pomiary.setGeometry(QtCore.QRect(830, 40, 391, 301))
        self.g_pomiary.setMinimumSize(QtCore.QSize(391, 301))
        self.g_pomiary.setObjectName(_fromUtf8("g_pomiary"))
        self.m_odczyt = QtGui.QPushButton(self.g_pomiary)
        self.m_odczyt.setGeometry(QtCore.QRect(10, 20, 261, 101))
        self.m_odczyt.setAutoDefault(True)
        self.m_odczyt.setDefault(True)
        self.m_odczyt.setFlat(False)
        self.m_odczyt.setObjectName(_fromUtf8("m_odczyt"))
        self.m_koniec = QtGui.QPushButton(self.g_pomiary)
        self.m_koniec.setGeometry(QtCore.QRect(90, 260, 181, 31))
        self.m_koniec.setObjectName(_fromUtf8("m_koniec"))
        self.m_czysc = QtGui.QPushButton(self.g_pomiary)
        self.m_czysc.setGeometry(QtCore.QRect(10, 270, 41, 20))
        self.m_czysc.setObjectName(_fromUtf8("m_czysc"))
        self.label_2 = QtGui.QLabel(self.g_pomiary)
        self.label_2.setGeometry(QtCore.QRect(20, 130, 16, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.label_3 = QtGui.QLabel(self.g_pomiary)
        self.label_3.setGeometry(QtCore.QRect(150, 130, 16, 16))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.m_wbielp = QtGui.QLineEdit(self.g_pomiary)
        self.m_wbielp.setGeometry(QtCore.QRect(30, 130, 31, 20))
        self.m_wbielp.setObjectName(_fromUtf8("m_wbielp"))
        self.m_wbielk = QtGui.QLineEdit(self.g_pomiary)
        self.m_wbielk.setGeometry(QtCore.QRect(160, 130, 31, 20))
        self.m_wbielk.setObjectName(_fromUtf8("m_wbielk"))
        self.m_bielp = QtGui.QPushButton(self.g_pomiary)
        self.m_bielp.setGeometry(QtCore.QRect(70, 130, 75, 23))
        self.m_bielp.setObjectName(_fromUtf8("m_bielp"))
        self.m_bielk = QtGui.QPushButton(self.g_pomiary)
        self.m_bielk.setGeometry(QtCore.QRect(200, 130, 75, 23))
        self.m_bielk.setObjectName(_fromUtf8("m_bielk"))
        self.label_4 = QtGui.QLabel(self.g_pomiary)
        self.label_4.setGeometry(QtCore.QRect(30, 160, 61, 16))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.m_wczesne = QtGui.QCheckBox(self.g_pomiary)
        self.m_wczesne.setGeometry(QtCore.QRect(100, 160, 70, 17))
        self.m_wczesne.setObjectName(_fromUtf8("m_wczesne"))
        self.m_pozne = QtGui.QCheckBox(self.g_pomiary)
        self.m_pozne.setGeometry(QtCore.QRect(170, 160, 70, 17))
        self.m_pozne.setObjectName(_fromUtf8("m_pozne"))
        self.m_kasuj = QtGui.QPushButton(self.g_pomiary)
        self.m_kasuj.setGeometry(QtCore.QRect(10, 180, 261, 41))
        self.m_kasuj.setObjectName(_fromUtf8("m_kasuj"))
        self.m_odczyty = QtGui.QTextEdit(self.g_pomiary)
        self.m_odczyty.setGeometry(QtCore.QRect(280, 20, 101, 271))
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.m_odczyty.setFont(font)
        self.m_odczyty.setObjectName(_fromUtf8("m_odczyty"))
        self.label = QtGui.QLabel(self.g_pomiary)
        self.label.setGeometry(QtCore.QRect(40, 230, 61, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.p_przesun = QtGui.QLineEdit(self.g_pomiary)
        self.p_przesun.setGeometry(QtCore.QRect(120, 230, 61, 20))
        self.p_przesun.setObjectName(_fromUtf8("p_przesun"))
        self.label_7 = QtGui.QLabel(self.g_pomiary)
        self.label_7.setGeometry(QtCore.QRect(190, 230, 46, 13))
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.g_promienie = QtGui.QGroupBox(Dialog)
        self.g_promienie.setGeometry(QtCore.QRect(300, 40, 521, 301))
        self.g_promienie.setMinimumSize(QtCore.QSize(521, 301))
        self.g_promienie.setObjectName(_fromUtf8("g_promienie"))
        self.r_dane = QtGui.QTableWidget(self.g_promienie)
        self.r_dane.setGeometry(QtCore.QRect(10, 20, 501, 241))
        self.r_dane.setObjectName(_fromUtf8("r_dane"))
        self.r_dane.setColumnCount(0)
        self.r_dane.setRowCount(0)
        self.r_nowy = QtGui.QPushButton(self.g_promienie)
        self.r_nowy.setGeometry(QtCore.QRect(10, 270, 75, 23))
        self.r_nowy.setObjectName(_fromUtf8("r_nowy"))
        self.r_edytuj = QtGui.QPushButton(self.g_promienie)
        self.r_edytuj.setGeometry(QtCore.QRect(90, 270, 75, 23))
        self.r_edytuj.setObjectName(_fromUtf8("r_edytuj"))
        self.r_koreluj = QtGui.QPushButton(self.g_promienie)
        self.r_koreluj.setGeometry(QtCore.QRect(350, 270, 75, 23))
        self.r_koreluj.setObjectName(_fromUtf8("r_koreluj"))
        self.r_usun = QtGui.QPushButton(self.g_promienie)
        self.r_usun.setGeometry(QtCore.QRect(170, 270, 75, 23))
        self.r_usun.setObjectName(_fromUtf8("r_usun"))
#.........这里部分代码省略.........
开发者ID:PawelKra,项目名称:LDB_Pomiary,代码行数:103,代码来源:PomiarUI2_2.py

示例2: Ui_MainWindow

# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import setMinimumSize [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1324, 822)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setMinimumSize(QtCore.QSize(1024, 768))
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout_6 = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.Button_Grid = QtGui.QGridLayout()
        self.Button_Grid.setObjectName(_fromUtf8("Button_Grid"))
        self.pushButton_clear = QtGui.QPushButton(self.centralwidget)
        self.pushButton_clear.setObjectName(_fromUtf8("pushButton_clear"))
        self.Button_Grid.addWidget(self.pushButton_clear, 0, 2, 1, 1)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.Button_Grid.addItem(spacerItem, 0, 3, 1, 1)
        self.toolbar_grid = QtGui.QGridLayout()
        self.toolbar_grid.setObjectName(_fromUtf8("toolbar_grid"))
        self.Button_Grid.addLayout(self.toolbar_grid, 0, 0, 1, 1)
        self.pushButton_plot = QtGui.QPushButton(self.centralwidget)
        self.pushButton_plot.setObjectName(_fromUtf8("pushButton_plot"))
        self.Button_Grid.addWidget(self.pushButton_plot, 0, 1, 1, 1)
        self.gridLayout_6.addLayout(self.Button_Grid, 1, 0, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_6.addItem(spacerItem1, 2, 0, 1, 1)
        self.mpl = MplWidget(self.centralwidget)
        self.mpl.setMinimumSize(QtCore.QSize(1024, 400))
        self.mpl.setObjectName(_fromUtf8("mpl"))
        self.gridLayout_6.addWidget(self.mpl, 0, 0, 1, 1)
        self.gridLayout_5 = QtGui.QGridLayout()
        self.gridLayout_5.setSizeConstraint(QtGui.QLayout.SetMaximumSize)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.groupBox_feature = QtGui.QGroupBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_feature.sizePolicy().hasHeightForWidth())
        self.groupBox_feature.setSizePolicy(sizePolicy)
        self.groupBox_feature.setMinimumSize(QtCore.QSize(320, 290))
        self.groupBox_feature.setObjectName(_fromUtf8("groupBox_feature"))
        self.gridLayoutWidget_2 = QtGui.QWidget(self.groupBox_feature)
        self.gridLayoutWidget_2.setGeometry(QtCore.QRect(0, 24, 306, 275))
        self.gridLayoutWidget_2.setObjectName(_fromUtf8("gridLayoutWidget_2"))
        self.gridLayout_3 = QtGui.QGridLayout(self.gridLayoutWidget_2)
        self.gridLayout_3.setMargin(0)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.label_width = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_width.setObjectName(_fromUtf8("label_width"))
        self.gridLayout_3.addWidget(self.label_width, 5, 0, 1, 1)
        self.label_conductivity = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_conductivity.setObjectName(_fromUtf8("label_conductivity"))
        self.gridLayout_3.addWidget(self.label_conductivity, 0, 0, 1, 1)
        self.label_length = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_length.setObjectName(_fromUtf8("label_length"))
        self.gridLayout_3.addWidget(self.label_length, 4, 0, 1, 1)
        self.doubleSpinBox_magsus = QtGui.QDoubleSpinBox(self.gridLayoutWidget_2)
        self.doubleSpinBox_magsus.setObjectName(_fromUtf8("doubleSpinBox_magsus"))
        self.gridLayout_3.addWidget(self.doubleSpinBox_magsus, 1, 1, 1, 1)
        self.label_depth = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_depth.setObjectName(_fromUtf8("label_depth"))
        self.gridLayout_3.addWidget(self.label_depth, 2, 0, 1, 1)
        self.comboBox_conductivity = QtGui.QComboBox(self.gridLayoutWidget_2)
        self.comboBox_conductivity.setEditable(True)
        self.comboBox_conductivity.setObjectName(_fromUtf8("comboBox_conductivity"))
        self.comboBox_conductivity.addItem(_fromUtf8(""))
        self.comboBox_conductivity.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.comboBox_conductivity, 0, 1, 1, 1)
        self.doubleSpinBox_length = QtGui.QDoubleSpinBox(self.gridLayoutWidget_2)
        self.doubleSpinBox_length.setObjectName(_fromUtf8("doubleSpinBox_length"))
        self.gridLayout_3.addWidget(self.doubleSpinBox_length, 4, 1, 1, 1)
        self.doubleSpinBox_strike = QtGui.QDoubleSpinBox(self.gridLayoutWidget_2)
        self.doubleSpinBox_strike.setObjectName(_fromUtf8("doubleSpinBox_strike"))
        self.gridLayout_3.addWidget(self.doubleSpinBox_strike, 6, 1, 1, 1)
        self.label_strike = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_strike.setObjectName(_fromUtf8("label_strike"))
        self.gridLayout_3.addWidget(self.label_strike, 6, 0, 1, 1)
        self.doubleSpinBox_depth = QtGui.QDoubleSpinBox(self.gridLayoutWidget_2)
        self.doubleSpinBox_depth.setObjectName(_fromUtf8("doubleSpinBox_depth"))
        self.gridLayout_3.addWidget(self.doubleSpinBox_depth, 2, 1, 1, 1)
        self.doubleSpinBox_width = QtGui.QDoubleSpinBox(self.gridLayoutWidget_2)
        self.doubleSpinBox_width.setObjectName(_fromUtf8("doubleSpinBox_width"))
        self.gridLayout_3.addWidget(self.doubleSpinBox_width, 5, 1, 1, 1)
        self.label_magsus = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_magsus.setObjectName(_fromUtf8("label_magsus"))
        self.gridLayout_3.addWidget(self.label_magsus, 1, 0, 1, 1)
        self.label_8 = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout_3.addWidget(self.label_8, 3, 0, 1, 1)
        self.doubleSpinBox_depthextent = QtGui.QDoubleSpinBox(self.gridLayoutWidget_2)
        self.doubleSpinBox_depthextent.setObjectName(_fromUtf8("doubleSpinBox_depthextent"))
        self.gridLayout_3.addWidget(self.doubleSpinBox_depthextent, 3, 1, 1, 1)
        self.gridLayout_5.addWidget(self.groupBox_feature, 0, 5, 1, 1)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_5.addItem(spacerItem2, 0, 6, 1, 1)
        self.groupBox_instrument = QtGui.QGroupBox(self.centralwidget)
#.........这里部分代码省略.........
开发者ID:ArchaeoPY,项目名称:ArchaeoPY-Modeller,代码行数:103,代码来源:MainUI.py

示例3: Ui_Form

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

#.........这里部分代码省略.........
        self.horizontalLayout_9.addWidget(self.stackedWidget)
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_9.addItem(spacerItem3)
        self.label = QtGui.QLabel(Form)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setText(QtGui.QApplication.translate("Form", "Y Axis from", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout_9.addWidget(self.label)
        self.lowerY = QtGui.QDoubleSpinBox(Form)
        self.lowerY.setDecimals(1)
        self.lowerY.setMaximum(70000.0)
        self.lowerY.setObjectName(_fromUtf8("lowerY"))
        self.horizontalLayout_9.addWidget(self.lowerY)
        self.label_2 = QtGui.QLabel(Form)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setText(QtGui.QApplication.translate("Form", "to", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_9.addWidget(self.label_2)
        self.upperY = QtGui.QDoubleSpinBox(Form)
        self.upperY.setDecimals(1)
        self.upperY.setMaximum(70000.0)
        self.upperY.setSingleStep(100.0)
        self.upperY.setProperty("value", 10.0)
        self.upperY.setObjectName(_fromUtf8("upperY"))
        self.horizontalLayout_9.addWidget(self.upperY)
        self.verticalLayout.addLayout(self.horizontalLayout_9)
        self.mplWidget = MplWidget(Form)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mplWidget.sizePolicy().hasHeightForWidth())
        self.mplWidget.setSizePolicy(sizePolicy)
        self.mplWidget.setMinimumSize(QtCore.QSize(100, 100))
        self.mplWidget.setObjectName(_fromUtf8("mplWidget"))
        self.verticalLayout.addWidget(self.mplWidget)
        self.verticalLayout_3.addLayout(self.verticalLayout)
        self.widget = QtGui.QWidget(Form)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setMaximumSize(QtCore.QSize(16777215, 130))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.widget)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.treeWidget = QtGui.QTreeWidget(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.treeWidget.sizePolicy().hasHeightForWidth())
        self.treeWidget.setSizePolicy(sizePolicy)
        self.treeWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.treeWidget.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.treeWidget.setAlternatingRowColors(True)
        self.treeWidget.setSelectionBehavior(QtGui.QAbstractItemView.SelectItems)
        self.treeWidget.setItemsExpandable(False)
        self.treeWidget.setAnimated(False)
        self.treeWidget.setHeaderHidden(False)
        self.treeWidget.setObjectName(_fromUtf8("treeWidget"))
        self.treeWidget.headerItem().setText(0, QtGui.QApplication.translate("Form", "Label", None, QtGui.QApplication.UnicodeUTF8))
        self.treeWidget.headerItem().setText(1, QtGui.QApplication.translate("Form", "Equation", None, QtGui.QApplication.UnicodeUTF8))
        self.treeWidget.headerItem().setText(2, QtGui.QApplication.translate("Form", "Colour", None, QtGui.QApplication.UnicodeUTF8))
        self.horizontalLayout.addWidget(self.treeWidget)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.addViewButton = QtGui.QPushButton(self.widget)
        self.addViewButton.setText(QtGui.QApplication.translate("Form", "Add view", None, QtGui.QApplication.UnicodeUTF8))
        self.addViewButton.setObjectName(_fromUtf8("addViewButton"))
        self.verticalLayout_2.addWidget(self.addViewButton)
        self.removeViewButton = QtGui.QPushButton(self.widget)
        self.removeViewButton.setText(QtGui.QApplication.translate("Form", "Remove view", None, QtGui.QApplication.UnicodeUTF8))
        self.removeViewButton.setObjectName(_fromUtf8("removeViewButton"))
        self.verticalLayout_2.addWidget(self.removeViewButton)
        spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem4)
        self.exportSelected = QtGui.QPushButton(self.widget)
        self.exportSelected.setText(QtGui.QApplication.translate("Form", "Export selected", None, QtGui.QApplication.UnicodeUTF8))
        self.exportSelected.setObjectName(_fromUtf8("exportSelected"))
        self.verticalLayout_2.addWidget(self.exportSelected)
        self.horizontalLayout.addLayout(self.verticalLayout_2)
        self.verticalLayout_3.addWidget(self.widget)
        self.horizontalLayout_3.addLayout(self.verticalLayout_3)

        self.retranslateUi(Form)
        self.stackedWidget.setCurrentIndex(0)
        QtCore.QObject.connect(self.x_unit_type_box, QtCore.SIGNAL(_fromUtf8("activated(int)")), self.stackedWidget.setCurrentIndex)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        pass
开发者ID:samwright,项目名称:TrAPS,代码行数:104,代码来源:graph_ui.py

示例4: Ui_Form

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

#.........这里部分代码省略.........
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_9.addItem(spacerItem7)
        self.label_3 = QtGui.QLabel(self.widget1)
        self.label_3.setText(QtGui.QApplication.translate("Form", "Show temperature from ", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_9.addWidget(self.label_3)
        self.minTempAxis = QtGui.QDoubleSpinBox(self.widget1)
        self.minTempAxis.setSuffix(QtGui.QApplication.translate("Form", " K", None, QtGui.QApplication.UnicodeUTF8))
        self.minTempAxis.setDecimals(1)
        self.minTempAxis.setMaximum(330.0)
        self.minTempAxis.setProperty("value", 0.0)
        self.minTempAxis.setObjectName(_fromUtf8("minTempAxis"))
        self.horizontalLayout_9.addWidget(self.minTempAxis)
        self.label_4 = QtGui.QLabel(self.widget1)
        self.label_4.setText(QtGui.QApplication.translate("Form", " to ", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout_9.addWidget(self.label_4)
        self.maxTempAxis = QtGui.QDoubleSpinBox(self.widget1)
        self.maxTempAxis.setSuffix(QtGui.QApplication.translate("Form", " K", None, QtGui.QApplication.UnicodeUTF8))
        self.maxTempAxis.setDecimals(1)
        self.maxTempAxis.setMaximum(330.0)
        self.maxTempAxis.setProperty("value", 330.0)
        self.maxTempAxis.setObjectName(_fromUtf8("maxTempAxis"))
        self.horizontalLayout_9.addWidget(self.maxTempAxis)
        self.verticalLayout_3.addLayout(self.horizontalLayout_9)
        self.mplWidget = MplWidget(self.widget1)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mplWidget.sizePolicy().hasHeightForWidth())
        self.mplWidget.setSizePolicy(sizePolicy)
        self.mplWidget.setMinimumSize(QtCore.QSize(100, 100))
        self.mplWidget.setAutoFillBackground(False)
        self.mplWidget.setObjectName(_fromUtf8("mplWidget"))
        self.verticalLayout_3.addWidget(self.mplWidget)
        self.tabWidget = QtGui.QTabWidget(self.widget1)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.showCalCurveButton = QtGui.QCheckBox(self.tab)
        self.showCalCurveButton.setText(QtGui.QApplication.translate("Form", "Show on graph", None, QtGui.QApplication.UnicodeUTF8))
        self.showCalCurveButton.setChecked(True)
        self.showCalCurveButton.setObjectName(_fromUtf8("showCalCurveButton"))
        self.verticalLayout_4.addWidget(self.showCalCurveButton)
        self.calTreeWidget = SeparableTreeWidget(self.tab)
        self.calTreeWidget.setDragDropMode(QtGui.QAbstractItemView.InternalMove)
        self.calTreeWidget.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
        self.calTreeWidget.setAutoExpandDelay(-1)
        self.calTreeWidget.setObjectName(_fromUtf8("calTreeWidget"))
        self.calTreeWidget.headerItem().setText(0, QtGui.QApplication.translate("Form", "Temperature (K)", None, QtGui.QApplication.UnicodeUTF8))
        self.calTreeWidget.headerItem().setText(1, QtGui.QApplication.translate("Form", "placeholder", None, QtGui.QApplication.UnicodeUTF8))
        self.verticalLayout_4.addWidget(self.calTreeWidget)
        self.horizontalLayout_11 = QtGui.QHBoxLayout()
        self.horizontalLayout_11.setObjectName(_fromUtf8("horizontalLayout_11"))
        self.calAddSeparatorButton = QtGui.QPushButton(self.tab)
        self.calAddSeparatorButton.setText(QtGui.QApplication.translate("Form", "Add separator", None, QtGui.QApplication.UnicodeUTF8))
        self.calAddSeparatorButton.setObjectName(_fromUtf8("calAddSeparatorButton"))
        self.horizontalLayout_11.addWidget(self.calAddSeparatorButton)
        self.calDelete = QtGui.QPushButton(self.tab)
        self.calDelete.setText(QtGui.QApplication.translate("Form", "Delete", None, QtGui.QApplication.UnicodeUTF8))
        self.calDelete.setObjectName(_fromUtf8("calDelete"))
        self.horizontalLayout_11.addWidget(self.calDelete)
开发者ID:samwright,项目名称:TrAPS,代码行数:70,代码来源:calib_ui.py

示例5: Ui_slicer

# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import setMinimumSize [as 别名]
class Ui_slicer(object):
    def setupUi(self, slicer):
        slicer.setObjectName("slicer")
        slicer.resize(802, 547)
        self.gridLayout = QtWidgets.QGridLayout(slicer)
        self.gridLayout.setObjectName("gridLayout")
        self.peakList = QtWidgets.QTableWidget(slicer)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.peakList.sizePolicy().hasHeightForWidth())
        self.peakList.setSizePolicy(sizePolicy)
        self.peakList.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.peakList.setObjectName("peakList")
        self.peakList.setColumnCount(3)
        self.peakList.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.peakList.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.peakList.setHorizontalHeaderItem(1, item)
        item = QtWidgets.QTableWidgetItem()
        self.peakList.setHorizontalHeaderItem(2, item)
        self.gridLayout.addWidget(self.peakList, 0, 0, 1, 1)
        self.mpl = MplWidget(slicer)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mpl.sizePolicy().hasHeightForWidth())
        self.mpl.setSizePolicy(sizePolicy)
        self.mpl.setMinimumSize(QtCore.QSize(500, 500))
        self.mpl.setObjectName("mpl")
        self.gridLayout.addWidget(self.mpl, 0, 1, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.status = QtWidgets.QLabel(slicer)
        self.status.setObjectName("status")
        self.horizontalLayout.addWidget(self.status)
        self.correction = QtWidgets.QCheckBox(slicer)
        self.correction.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.correction.setObjectName("correction")
        self.horizontalLayout.addWidget(self.correction)
        self.gridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.pb = QtWidgets.QProgressBar(slicer)
        self.pb.setEnabled(True)
        self.pb.setProperty("value", 0)
        self.pb.setInvertedAppearance(False)
        self.pb.setObjectName("pb")
        self.horizontalLayout_2.addWidget(self.pb)
        self.label_2 = QtWidgets.QLabel(slicer)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_2.addWidget(self.label_2)
        self.prof1daxis = QtWidgets.QComboBox(slicer)
        self.prof1daxis.setObjectName("prof1daxis")
        self.prof1daxis.addItem("")
        self.prof1daxis.addItem("")
        self.prof1daxis.addItem("")
        self.horizontalLayout_2.addWidget(self.prof1daxis)
        self.label = QtWidgets.QLabel(slicer)
        self.label.setObjectName("label")
        self.horizontalLayout_2.addWidget(self.label)
        self.cmap = QtWidgets.QComboBox(slicer)
        self.cmap.setObjectName("cmap")
        self.cmap.addItem("")
        self.cmap.addItem("")
        self.cmap.addItem("")
        self.cmap.addItem("")
        self.horizontalLayout_2.addWidget(self.cmap)
        self.gridLayout.addLayout(self.horizontalLayout_2, 1, 1, 1, 1)

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

    def retranslateUi(self, slicer):
        _translate = QtCore.QCoreApplication.translate
        slicer.setWindowTitle(_translate("slicer", "Slicer"))
        item = self.peakList.horizontalHeaderItem(0)
        item.setText(_translate("slicer", "Name"))
        item = self.peakList.horizontalHeaderItem(1)
        item.setText(_translate("slicer", "center mass"))
        item = self.peakList.horizontalHeaderItem(2)
        item.setText(_translate("slicer", "Δ mass"))
        self.status.setText(_translate("slicer", "Loading..."))
        self.correction.setText(_translate("slicer", "Apply Correction"))
        self.label_2.setText(_translate("slicer", "1D plot on"))
        self.prof1daxis.setItemText(0, _translate("slicer", "X"))
        self.prof1daxis.setItemText(1, _translate("slicer", "Y"))
        self.prof1daxis.setItemText(2, _translate("slicer", "Z"))
        self.label.setText(_translate("slicer", "Colormap"))
        self.cmap.setItemText(0, _translate("slicer", "viridis"))
        self.cmap.setItemText(1, _translate("slicer", "gray"))
        self.cmap.setItemText(2, _translate("slicer", "hot"))
        self.cmap.setItemText(3, _translate("slicer", "jet"))
开发者ID:liulimin90,项目名称:pySPM,代码行数:96,代码来源:slicer.py

示例6: Ui_Dialog

# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import setMinimumSize [as 别名]
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.setWindowModality(QtCore.Qt.NonModal)
        Dialog.setEnabled(True)
        Dialog.resize(1084, 622)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(Dialog.sizePolicy().hasHeightForWidth())
        Dialog.setSizePolicy(sizePolicy)
        self.widget = QtGui.QWidget(Dialog)
        self.widget.setGeometry(QtCore.QRect(9, 9, 1066, 604))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.horizontalLayout_14 = QtGui.QHBoxLayout(self.widget)
        self.horizontalLayout_14.setMargin(0)
        self.horizontalLayout_14.setObjectName(_fromUtf8("horizontalLayout_14"))
        self.mpl = MplWidget(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mpl.sizePolicy().hasHeightForWidth())
        self.mpl.setSizePolicy(sizePolicy)
        self.mpl.setMinimumSize(QtCore.QSize(600, 600))
        self.mpl.setObjectName(_fromUtf8("mpl"))
        self.horizontalLayout_14.addWidget(self.mpl)
        self.line_7 = QtGui.QFrame(self.widget)
        self.line_7.setFrameShape(QtGui.QFrame.VLine)
        self.line_7.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_7.setObjectName(_fromUtf8("line_7"))
        self.horizontalLayout_14.addWidget(self.line_7)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.l_columns = QtGui.QLabel(self.widget)
        self.l_columns.setObjectName(_fromUtf8("l_columns"))
        self.verticalLayout.addWidget(self.l_columns)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.l_x = QtGui.QLabel(self.widget)
        self.l_x.setObjectName(_fromUtf8("l_x"))
        self.horizontalLayout_3.addWidget(self.l_x)
        self.spin_x = QtGui.QSpinBox(self.widget)
        self.spin_x.setMinimum(1)
        self.spin_x.setObjectName(_fromUtf8("spin_x"))
        self.horizontalLayout_3.addWidget(self.spin_x)
        self.l_y = QtGui.QLabel(self.widget)
        self.l_y.setObjectName(_fromUtf8("l_y"))
        self.horizontalLayout_3.addWidget(self.l_y)
        self.spin_y = QtGui.QSpinBox(self.widget)
        self.spin_y.setMinimum(2)
        self.spin_y.setObjectName(_fromUtf8("spin_y"))
        self.horizontalLayout_3.addWidget(self.spin_y)
        self.l_start = QtGui.QLabel(self.widget)
        self.l_start.setObjectName(_fromUtf8("l_start"))
        self.horizontalLayout_3.addWidget(self.l_start)
        self.slide_start = QtGui.QSlider(self.widget)
        self.slide_start.setMinimum(1)
        self.slide_start.setProperty("value", 10)
        self.slide_start.setOrientation(QtCore.Qt.Horizontal)
        self.slide_start.setObjectName(_fromUtf8("slide_start"))
        self.horizontalLayout_3.addWidget(self.slide_start)
        self.l_stop = QtGui.QLabel(self.widget)
        self.l_stop.setObjectName(_fromUtf8("l_stop"))
        self.horizontalLayout_3.addWidget(self.l_stop)
        self.slide_stop = QtGui.QSlider(self.widget)
        self.slide_stop.setMinimum(1)
        self.slide_stop.setProperty("value", 10)
        self.slide_stop.setOrientation(QtCore.Qt.Horizontal)
        self.slide_stop.setObjectName(_fromUtf8("slide_stop"))
        self.horizontalLayout_3.addWidget(self.slide_stop)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.line_3 = QtGui.QFrame(self.widget)
        self.line_3.setFrameShape(QtGui.QFrame.HLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.verticalLayout.addWidget(self.line_3)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.l_xlabel = QtGui.QLabel(self.widget)
        self.l_xlabel.setObjectName(_fromUtf8("l_xlabel"))
        self.horizontalLayout_5.addWidget(self.l_xlabel)
        self.edit_xlabel = QtGui.QLineEdit(self.widget)
        self.edit_xlabel.setObjectName(_fromUtf8("edit_xlabel"))
        self.horizontalLayout_5.addWidget(self.edit_xlabel)
        self.l_xsize = QtGui.QLabel(self.widget)
        self.l_xsize.setObjectName(_fromUtf8("l_xsize"))
        self.horizontalLayout_5.addWidget(self.l_xsize)
        self.slide_xsize = QtGui.QSlider(self.widget)
        self.slide_xsize.setMinimum(8)
        self.slide_xsize.setProperty("value", 20)
        self.slide_xsize.setOrientation(QtCore.Qt.Horizontal)
        self.slide_xsize.setObjectName(_fromUtf8("slide_xsize"))
        self.horizontalLayout_5.addWidget(self.slide_xsize)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_12 = QtGui.QHBoxLayout()
        self.horizontalLayout_12.setObjectName(_fromUtf8("horizontalLayout_12"))
        self.l_x_ticks = QtGui.QLabel(self.widget)
        self.l_x_ticks.setObjectName(_fromUtf8("l_x_ticks"))
        self.horizontalLayout_12.addWidget(self.l_x_ticks)
#.........这里部分代码省略.........
开发者ID:piotrlaczkowski,项目名称:Data-Inspector-Advanced,代码行数:103,代码来源:main_window.py

示例7: Ui_WaveguideViewer_MainWindow

# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import setMinimumSize [as 别名]
class Ui_WaveguideViewer_MainWindow(object):
    def setupUi(self, WaveguideViewer_MainWindow):
        WaveguideViewer_MainWindow.setObjectName(_fromUtf8("WaveguideViewer_MainWindow"))
        WaveguideViewer_MainWindow.resize(827, 690)
        self.centralwidget = QtGui.QWidget(WaveguideViewer_MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setMargin(1)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.selectMode_tab = QtGui.QWidget()
        self.selectMode_tab.setObjectName(_fromUtf8("selectMode_tab"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.selectMode_tab)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.textBrowser = QtGui.QTextBrowser(self.selectMode_tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.textBrowser.sizePolicy().hasHeightForWidth())
        self.textBrowser.setSizePolicy(sizePolicy)
        self.textBrowser.setMaximumSize(QtCore.QSize(300, 16777215))
        self.textBrowser.setObjectName(_fromUtf8("textBrowser"))
        self.horizontalLayout.addWidget(self.textBrowser)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.label_6 = QtGui.QLabel(self.selectMode_tab)
        self.label_6.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.verticalLayout_3.addWidget(self.label_6)
        self.mode_comboBox = QtGui.QComboBox(self.selectMode_tab)
        self.mode_comboBox.setObjectName(_fromUtf8("mode_comboBox"))
        self.mode_comboBox.addItem(_fromUtf8(""))
        self.mode_comboBox.addItem(_fromUtf8(""))
        self.mode_comboBox.addItem(_fromUtf8(""))
        self.verticalLayout_3.addWidget(self.mode_comboBox)
        spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        self.verticalLayout_3.addItem(spacerItem)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label = QtGui.QLabel(self.selectMode_tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setMinimumSize(QtCore.QSize(20, 0))
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout_2.addWidget(self.label)
        self.m_spinBox = QtGui.QSpinBox(self.selectMode_tab)
        self.m_spinBox.setMinimumSize(QtCore.QSize(67, 0))
        self.m_spinBox.setMaximum(100)
        self.m_spinBox.setProperty("value", 3)
        self.m_spinBox.setObjectName(_fromUtf8("m_spinBox"))
        self.horizontalLayout_2.addWidget(self.m_spinBox)
        spacerItem1 = QtGui.QSpacerItem(30, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.label_2 = QtGui.QLabel(self.selectMode_tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setMinimumSize(QtCore.QSize(20, 0))
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_2.addWidget(self.label_2)
        self.n_spinBox = QtGui.QSpinBox(self.selectMode_tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.n_spinBox.sizePolicy().hasHeightForWidth())
        self.n_spinBox.setSizePolicy(sizePolicy)
        self.n_spinBox.setMinimumSize(QtCore.QSize(67, 0))
        self.n_spinBox.setMinimum(1)
        self.n_spinBox.setMaximum(100)
        self.n_spinBox.setProperty("value", 1)
        self.n_spinBox.setObjectName(_fromUtf8("n_spinBox"))
        self.horizontalLayout_2.addWidget(self.n_spinBox)
        spacerItem2 = QtGui.QSpacerItem(30, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem2)
        self.label_3 = QtGui.QLabel(self.selectMode_tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setMinimumSize(QtCore.QSize(20, 0))
        self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_2.addWidget(self.label_3)
        self.c_doubleSpinBox = QtGui.QDoubleSpinBox(self.selectMode_tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.c_doubleSpinBox.sizePolicy().hasHeightForWidth())
        self.c_doubleSpinBox.setSizePolicy(sizePolicy)
        self.c_doubleSpinBox.setMinimumSize(QtCore.QSize(50, 0))
        self.c_doubleSpinBox.setMinimum(1.01)
#.........这里部分代码省略.........
开发者ID:tenulate,项目名称:waveguide-viewer,代码行数:103,代码来源:qtdesigner.py

示例8: Ui_MainWindow

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

示例9: Ui_MainWindow

# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import setMinimumSize [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1385, 713)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.statCB = QtGui.QCheckBox(self.centralwidget)
        self.statCB.setObjectName(_fromUtf8("statCB"))
        self.verticalLayout.addWidget(self.statCB)
        self.normCB = QtGui.QCheckBox(self.centralwidget)
        self.normCB.setObjectName(_fromUtf8("normCB"))
        self.verticalLayout.addWidget(self.normCB)
        self.saveBT = QtGui.QPushButton(self.centralwidget)
        self.saveBT.setObjectName(_fromUtf8("saveBT"))
        self.verticalLayout.addWidget(self.saveBT)
        self.comboBox = QtGui.QComboBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.comboBox.sizePolicy().hasHeightForWidth())
        self.comboBox.setSizePolicy(sizePolicy)
        self.comboBox.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.comboBox.setObjectName(_fromUtf8("comboBox"))
        self.verticalLayout.addWidget(self.comboBox)
        self.listWidget = QtGui.QListWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
        self.listWidget.setSizePolicy(sizePolicy)
        self.listWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.listWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.listWidget.setObjectName(_fromUtf8("listWidget"))
        self.verticalLayout.addWidget(self.listWidget)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.DV = QtGui.QDoubleSpinBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.DV.sizePolicy().hasHeightForWidth())
        self.DV.setSizePolicy(sizePolicy)
        self.DV.setDecimals(3)
        self.DV.setMinimum(0.001)
        self.DV.setSingleStep(0.1)
        self.DV.setProperty("value", 1.0)
        self.DV.setObjectName(_fromUtf8("DV"))
        self.horizontalLayout.addWidget(self.DV)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_2.addLayout(self.verticalLayout)
        self.mpl = MplWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mpl.sizePolicy().hasHeightForWidth())
        self.mpl.setSizePolicy(sizePolicy)
        self.mpl.setMinimumSize(QtCore.QSize(414, 0))
        self.mpl.setObjectName(_fromUtf8("mpl"))
        self.horizontalLayout_2.addWidget(self.mpl)
        self.treeWidget = QtGui.QTreeWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.treeWidget.sizePolicy().hasHeightForWidth())
        self.treeWidget.setSizePolicy(sizePolicy)
        self.treeWidget.setStyleSheet(_fromUtf8(""))
        self.treeWidget.setObjectName(_fromUtf8("treeWidget"))
        self.treeWidget.headerItem().setText(0, _fromUtf8("1"))
        self.horizontalLayout_2.addWidget(self.treeWidget)
        self.pushButton = QtGui.QPushButton(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButton.sizePolicy().hasHeightForWidth())
        self.pushButton.setSizePolicy(sizePolicy)
        self.pushButton.setBaseSize(QtCore.QSize(0, 0))
        self.pushButton.setStyleSheet(_fromUtf8("padding: 5px;"))
        self.pushButton.setIconSize(QtCore.QSize(16, 16))
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.horizontalLayout_2.addWidget(self.pushButton)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1385, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
#.........这里部分代码省略.........
开发者ID:scholi,项目名称:pyOmicron,代码行数:103,代码来源:GUI_STSviewer.py

示例10: Ui_MainWindow

# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import setMinimumSize [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1183, 632)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout_4 = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.mpl = MplWidget(self.centralwidget)
        self.mpl.setMinimumSize(QtCore.QSize(650, 558))
        self.mpl.setObjectName(_fromUtf8("mpl"))
        self.gridLayout_4.addWidget(self.mpl, 0, 0, 1, 1)
        self.line_20 = QtGui.QFrame(self.centralwidget)
        self.line_20.setFrameShape(QtGui.QFrame.HLine)
        self.line_20.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_20.setObjectName(_fromUtf8("line_20"))
        self.gridLayout_4.addWidget(self.line_20, 1, 0, 1, 2)
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setTabPosition(QtGui.QTabWidget.North)
        self.tabWidget.setElideMode(QtCore.Qt.ElideLeft)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.gridLayout_2 = QtGui.QGridLayout(self.tab)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.horizontalLayout_11 = QtGui.QHBoxLayout()
        self.horizontalLayout_11.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
        self.horizontalLayout_11.setObjectName(_fromUtf8("horizontalLayout_11"))
        self.l_x = QtGui.QLabel(self.tab)
        self.l_x.setObjectName(_fromUtf8("l_x"))
        self.horizontalLayout_11.addWidget(self.l_x)
        self.combo_x = QtGui.QComboBox(self.tab)
        self.combo_x.setMaximumSize(QtCore.QSize(50, 16777215))
        self.combo_x.setObjectName(_fromUtf8("combo_x"))
        self.horizontalLayout_11.addWidget(self.combo_x)
        self.l_y = QtGui.QLabel(self.tab)
        self.l_y.setObjectName(_fromUtf8("l_y"))
        self.horizontalLayout_11.addWidget(self.l_y)
        self.combo_y = QtGui.QComboBox(self.tab)
        self.combo_y.setMaximumSize(QtCore.QSize(50, 16777215))
        self.combo_y.setObjectName(_fromUtf8("combo_y"))
        self.horizontalLayout_11.addWidget(self.combo_y)
        self.l_start = QtGui.QLabel(self.tab)
        self.l_start.setObjectName(_fromUtf8("l_start"))
        self.horizontalLayout_11.addWidget(self.l_start)
        self.slide_start = QtGui.QSlider(self.tab)
        self.slide_start.setMinimum(1)
        self.slide_start.setProperty("value", 10)
        self.slide_start.setOrientation(QtCore.Qt.Horizontal)
        self.slide_start.setObjectName(_fromUtf8("slide_start"))
        self.horizontalLayout_11.addWidget(self.slide_start)
        self.l_stop = QtGui.QLabel(self.tab)
        self.l_stop.setObjectName(_fromUtf8("l_stop"))
        self.horizontalLayout_11.addWidget(self.l_stop)
        self.slide_stop = QtGui.QSlider(self.tab)
        self.slide_stop.setMinimum(1)
        self.slide_stop.setProperty("value", 10)
        self.slide_stop.setOrientation(QtCore.Qt.Horizontal)
        self.slide_stop.setObjectName(_fromUtf8("slide_stop"))
        self.horizontalLayout_11.addWidget(self.slide_stop)
        self.gridLayout_2.addLayout(self.horizontalLayout_11, 0, 0, 1, 1)
        self.line_17 = QtGui.QFrame(self.tab)
        self.line_17.setFrameShape(QtGui.QFrame.HLine)
        self.line_17.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_17.setObjectName(_fromUtf8("line_17"))
        self.gridLayout_2.addWidget(self.line_17, 1, 0, 1, 1)
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10"))
        self.l_xlabel = QtGui.QLabel(self.tab)
        self.l_xlabel.setObjectName(_fromUtf8("l_xlabel"))
        self.horizontalLayout_10.addWidget(self.l_xlabel)
        self.edit_xlabel = QtGui.QLineEdit(self.tab)
        self.edit_xlabel.setMaximumSize(QtCore.QSize(80, 16777215))
        self.edit_xlabel.setObjectName(_fromUtf8("edit_xlabel"))
        self.horizontalLayout_10.addWidget(self.edit_xlabel)
        self.l_xsize = QtGui.QLabel(self.tab)
        self.l_xsize.setObjectName(_fromUtf8("l_xsize"))
        self.horizontalLayout_10.addWidget(self.l_xsize)
        self.slide_xsize = QtGui.QSlider(self.tab)
        self.slide_xsize.setMinimum(8)
        self.slide_xsize.setProperty("value", 20)
        self.slide_xsize.setOrientation(QtCore.Qt.Horizontal)
        self.slide_xsize.setObjectName(_fromUtf8("slide_xsize"))
        self.horizontalLayout_10.addWidget(self.slide_xsize)
        self.gridLayout_2.addLayout(self.horizontalLayout_10, 2, 0, 1, 1)
        self.horizontalLayout_12 = QtGui.QHBoxLayout()
        self.horizontalLayout_12.setObjectName(_fromUtf8("horizontalLayout_12"))
        self.l_x_ticks = QtGui.QLabel(self.tab)
        self.l_x_ticks.setObjectName(_fromUtf8("l_x_ticks"))
        self.horizontalLayout_12.addWidget(self.l_x_ticks)
        self.slide_xnr = QtGui.QSlider(self.tab)
        self.slide_xnr.setMinimum(3)
        self.slide_xnr.setMaximum(20)
        self.slide_xnr.setProperty("value", 5)
        self.slide_xnr.setOrientation(QtCore.Qt.Horizontal)
        self.slide_xnr.setObjectName(_fromUtf8("slide_xnr"))
        self.horizontalLayout_12.addWidget(self.slide_xnr)
        self.l_xsizeticks = QtGui.QLabel(self.tab)
        self.l_xsizeticks.setObjectName(_fromUtf8("l_xsizeticks"))
        self.horizontalLayout_12.addWidget(self.l_xsizeticks)
#.........这里部分代码省略.........
开发者ID:piotrlaczkowski,项目名称:Data-Inspector-Advanced,代码行数:103,代码来源:PLOT_main_window.py


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