本文整理汇总了Python中mplwidget.MplWidget.sizePolicy方法的典型用法代码示例。如果您正苦于以下问题:Python MplWidget.sizePolicy方法的具体用法?Python MplWidget.sizePolicy怎么用?Python MplWidget.sizePolicy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mplwidget.MplWidget
的用法示例。
在下文中一共展示了MplWidget.sizePolicy方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_Plotterui
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import sizePolicy [as 别名]
class Ui_Plotterui(object):
def setupUi(self, Plotterui):
Plotterui.setObjectName(_fromUtf8("Plotterui"))
Plotterui.setEnabled(True)
Plotterui.resize(687, 624)
self.MPLArea = MplWidget(Plotterui)
self.MPLArea.setGeometry(QtCore.QRect(20, 40, 651, 561))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.MPLArea.sizePolicy().hasHeightForWidth())
self.MPLArea.setSizePolicy(sizePolicy)
self.MPLArea.setFocusPolicy(QtCore.Qt.NoFocus)
self.MPLArea.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
self.MPLArea.setObjectName(_fromUtf8("MPLArea"))
self.Plot_comboBox = QtGui.QComboBox(Plotterui)
self.Plot_comboBox.setGeometry(QtCore.QRect(20, 10, 141, 22))
self.Plot_comboBox.setMaxVisibleItems(100)
self.Plot_comboBox.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLength)
self.Plot_comboBox.setObjectName(_fromUtf8("Plot_comboBox"))
self.retranslateUi(Plotterui)
QtCore.QObject.connect(self.Plot_comboBox, QtCore.SIGNAL(_fromUtf8("activated(int)")), Plotterui.myPlot)
QtCore.QMetaObject.connectSlotsByName(Plotterui)
def retranslateUi(self, Plotterui):
Plotterui.setWindowTitle(
QtGui.QApplication.translate("Plotterui", "Plotter", None, QtGui.QApplication.UnicodeUTF8)
)
示例2: Ui_Plotterui
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import sizePolicy [as 别名]
class Ui_Plotterui(object):
def setupUi(self, Plotterui):
Plotterui.setObjectName(_fromUtf8("Plotterui"))
Plotterui.setEnabled(True)
Plotterui.resize(803, 586)
self.MPLArea = MplWidget(Plotterui)
self.MPLArea.setGeometry(QtCore.QRect(150, 10, 641, 561))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.MPLArea.sizePolicy().hasHeightForWidth())
self.MPLArea.setSizePolicy(sizePolicy)
self.MPLArea.setFocusPolicy(QtCore.Qt.NoFocus)
self.MPLArea.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
self.MPLArea.setObjectName(_fromUtf8("MPLArea"))
self.PLOT_Button = QtGui.QPushButton(Plotterui)
self.PLOT_Button.setGeometry(QtCore.QRect(20, 250, 75, 23))
self.PLOT_Button.setObjectName(_fromUtf8("PLOT_Button"))
self.checkTotalInt = QtGui.QCheckBox(Plotterui)
self.checkTotalInt.setEnabled(True)
self.checkTotalInt.setGeometry(QtCore.QRect(11, 101, 62, 17))
self.checkTotalInt.setMouseTracking(False)
self.checkTotalInt.setChecked(False)
self.checkTotalInt.setAutoExclusive(True)
self.checkTotalInt.setObjectName(_fromUtf8("checkTotalInt"))
self.checkFlammenhoehe = QtGui.QCheckBox(Plotterui)
self.checkFlammenhoehe.setGeometry(QtCore.QRect(11, 124, 95, 17))
self.checkFlammenhoehe.setChecked(True)
self.checkFlammenhoehe.setAutoExclusive(True)
self.checkFlammenhoehe.setObjectName(_fromUtf8("checkFlammenhoehe"))
self.checkFlammenhoeheGauss = QtGui.QCheckBox(Plotterui)
self.checkFlammenhoeheGauss.setGeometry(QtCore.QRect(10, 150, 131, 17))
self.checkFlammenhoeheGauss.setChecked(False)
self.checkFlammenhoeheGauss.setAutoExclusive(True)
self.checkFlammenhoeheGauss.setObjectName(_fromUtf8("checkFlammenhoeheGauss"))
self.checkFlammenoberflaecheGauss = QtGui.QCheckBox(Plotterui)
self.checkFlammenoberflaecheGauss.setGeometry(QtCore.QRect(10, 180, 131, 17))
self.checkFlammenoberflaecheGauss.setChecked(False)
self.checkFlammenoberflaecheGauss.setAutoExclusive(True)
self.checkFlammenoberflaecheGauss.setObjectName(_fromUtf8("checkFlammenoberflaecheGauss"))
self.retranslateUi(Plotterui)
QtCore.QObject.connect(self.PLOT_Button, QtCore.SIGNAL(_fromUtf8("clicked()")), Plotterui.myPlot)
QtCore.QMetaObject.connectSlotsByName(Plotterui)
def retranslateUi(self, Plotterui):
Plotterui.setWindowTitle(QtGui.QApplication.translate("Plotterui", "Plotter", None, QtGui.QApplication.UnicodeUTF8))
self.PLOT_Button.setText(QtGui.QApplication.translate("Plotterui", "PLOT!", None, QtGui.QApplication.UnicodeUTF8))
self.checkTotalInt.setText(QtGui.QApplication.translate("Plotterui", "total Int", None, QtGui.QApplication.UnicodeUTF8))
self.checkFlammenhoehe.setText(QtGui.QApplication.translate("Plotterui", "Flammenhoehe", None, QtGui.QApplication.UnicodeUTF8))
self.checkFlammenhoeheGauss.setText(QtGui.QApplication.translate("Plotterui", "Flammenhoehe Gauss", None, QtGui.QApplication.UnicodeUTF8))
self.checkFlammenoberflaecheGauss.setText(QtGui.QApplication.translate("Plotterui", "Flammenoberflaeche", None, QtGui.QApplication.UnicodeUTF8))
示例3: Ui_MplMainWindow
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import sizePolicy [as 别名]
class Ui_MplMainWindow(object):
def setupUi(self, MplMainWindow):
MplMainWindow.setObjectName(_fromUtf8("MplMainWindow"))
MplMainWindow.resize(646, 600)
self.centralWidget = QtGui.QWidget(MplMainWindow)
self.centralWidget.setObjectName(_fromUtf8("centralWidget"))
self.horizontalLayoutWidget = QtGui.QWidget(self.centralWidget)
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(20, 20, 581, 51))
self.horizontalLayoutWidget.setObjectName(_fromUtf8("horizontalLayoutWidget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.mpllineEdit = QtGui.QLineEdit(self.horizontalLayoutWidget)
self.mpllineEdit.setObjectName(_fromUtf8("mpllineEdit"))
self.horizontalLayout.addWidget(self.mpllineEdit)
self.mplpushButton = QtGui.QPushButton(self.horizontalLayoutWidget)
self.mplpushButton.setObjectName(_fromUtf8("mplpushButton"))
self.horizontalLayout.addWidget(self.mplpushButton)
self.mpl = MplWidget(self.centralWidget)
self.mpl.setGeometry(QtCore.QRect(20, 90, 571, 441))
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.setObjectName(_fromUtf8("mpl"))
MplMainWindow.setCentralWidget(self.centralWidget)
self.menuBar = QtGui.QMenuBar(MplMainWindow)
self.menuBar.setGeometry(QtCore.QRect(0, 0, 646, 23))
self.menuBar.setObjectName(_fromUtf8("menuBar"))
self.mplmenuFile = QtGui.QMenu(self.menuBar)
self.mplmenuFile.setObjectName(_fromUtf8("mplmenuFile"))
MplMainWindow.setMenuBar(self.menuBar)
self.mplactionOpen = QtGui.QAction(MplMainWindow)
self.mplactionOpen.setObjectName(_fromUtf8("mplactionOpen"))
self.mplactionQuit = QtGui.QAction(MplMainWindow)
self.mplactionQuit.setObjectName(_fromUtf8("mplactionQuit"))
self.mplmenuFile.addAction(self.mplactionOpen)
self.mplmenuFile.addSeparator()
self.mplmenuFile.addAction(self.mplactionQuit)
self.menuBar.addAction(self.mplmenuFile.menuAction())
self.retranslateUi(MplMainWindow)
QtCore.QMetaObject.connectSlotsByName(MplMainWindow)
def retranslateUi(self, MplMainWindow):
MplMainWindow.setWindowTitle(_translate("MplMainWindow", "MainWindow", None))
self.mplpushButton.setText(_translate("MplMainWindow", "PushButton", None))
self.mplmenuFile.setTitle(_translate("MplMainWindow", "File", None))
self.mplactionOpen.setText(_translate("MplMainWindow", "Open", None))
self.mplactionQuit.setText(_translate("MplMainWindow", "Quit", None))
示例4: Ui_GpMainWindow
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import sizePolicy [as 别名]
class Ui_GpMainWindow(object):
def setupUi(self, GpMainWindow):
GpMainWindow.setObjectName("GpMainWindow")
GpMainWindow.resize(567, 497)
self.Gpcentralwidget = QtGui.QWidget(GpMainWindow)
self.Gpcentralwidget.setObjectName("Gpcentralwidget")
self.verticalLayout = QtGui.QVBoxLayout(self.Gpcentralwidget)
self.verticalLayout.setObjectName("verticalLayout")
self.GpgridLayout = QtGui.QGridLayout()
self.GpgridLayout.setObjectName("GpgridLayout")
self.GppushButton = QtGui.QPushButton(self.Gpcentralwidget)
self.GppushButton.setObjectName("GppushButton")
self.GpgridLayout.addWidget(self.GppushButton, 1, 2, 1, 1)
self.GpradioButton2 = QtGui.QRadioButton(self.Gpcentralwidget)
self.GpradioButton2.setEnabled(False)
self.GpradioButton2.setObjectName("GpradioButton2")
self.GpgridLayout.addWidget(self.GpradioButton2, 1, 1, 1, 1)
self.GpradioButton = QtGui.QRadioButton(self.Gpcentralwidget)
self.GpradioButton.setChecked(True)
self.GpradioButton.setObjectName("GpradioButton")
self.GpgridLayout.addWidget(self.GpradioButton, 1, 0, 1, 1)
self.GplineEdit = QtGui.QLineEdit(self.Gpcentralwidget)
self.GplineEdit.setObjectName("GplineEdit")
self.GpgridLayout.addWidget(self.GplineEdit, 0, 0, 1, 1)
self.GplineEdit_2 = QtGui.QLineEdit(self.Gpcentralwidget)
self.GplineEdit_2.setObjectName("GplineEdit_2")
self.GpgridLayout.addWidget(self.GplineEdit_2, 0, 1, 1, 1)
self.GplineEdit_3 = QtGui.QLineEdit(self.Gpcentralwidget)
self.GplineEdit_3.setEnabled(False)
self.GplineEdit_3.setObjectName("GplineEdit_3")
self.GpgridLayout.addWidget(self.GplineEdit_3, 0, 2, 1, 1)
self.verticalLayout.addLayout(self.GpgridLayout)
self.Mpl = MplWidget(self.Gpcentralwidget)
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.setObjectName("Mpl")
self.verticalLayout.addWidget(self.Mpl)
GpMainWindow.setCentralWidget(self.Gpcentralwidget)
self.retranslateUi(GpMainWindow)
QtCore.QMetaObject.connectSlotsByName(GpMainWindow)
def retranslateUi(self, GpMainWindow):
GpMainWindow.setWindowTitle(QtGui.QApplication.translate("GpMainWindow", "Graph Plotter", None, QtGui.QApplication.UnicodeUTF8))
self.GppushButton.setText(QtGui.QApplication.translate("GpMainWindow", "Draw", None, QtGui.QApplication.UnicodeUTF8))
self.GpradioButton2.setText(QtGui.QApplication.translate("GpMainWindow", "Plot 3D", None, QtGui.QApplication.UnicodeUTF8))
self.GpradioButton.setText(QtGui.QApplication.translate("GpMainWindow", "Plot 2D", None, QtGui.QApplication.UnicodeUTF8))
示例5: Ui_MplMainWindow
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import sizePolicy [as 别名]
class Ui_MplMainWindow(object):
def setupUi(self, MplMainWindow):
MplMainWindow.setObjectName("MplMainWindow")
MplMainWindow.resize(800, 600)
self.mplcentralwidget = QtGui.QWidget(MplMainWindow)
self.mplcentralwidget.setObjectName("mplcentralwidget")
self.verticalLayout = QtGui.QVBoxLayout(self.mplcentralwidget)
self.verticalLayout.setObjectName("verticalLayout")
self.mplhorizontalLayout = QtGui.QHBoxLayout()
self.mplhorizontalLayout.setObjectName("mplhorizontalLayout")
self.mpllineEdit = QtGui.QLineEdit(self.mplcentralwidget)
self.mpllineEdit.setObjectName("mpllineEdit")
self.mplhorizontalLayout.addWidget(self.mpllineEdit)
self.mplpushButton = QtGui.QPushButton(self.mplcentralwidget)
self.mplpushButton.setObjectName("mplpushButton")
self.mplhorizontalLayout.addWidget(self.mplpushButton)
self.verticalLayout.addLayout(self.mplhorizontalLayout)
self.mpl = MplWidget(self.mplcentralwidget)
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.setObjectName("mpl")
self.verticalLayout.addWidget(self.mpl)
MplMainWindow.setCentralWidget(self.mplcentralwidget)
self.mplmenubar = QtGui.QMenuBar(MplMainWindow)
self.mplmenubar.setGeometry(QtCore.QRect(0, 0, 800, 25))
self.mplmenubar.setObjectName("mplmenubar")
self.mplmenuFile = QtGui.QMenu(self.mplmenubar)
self.mplmenuFile.setObjectName("mplmenuFile")
MplMainWindow.setMenuBar(self.mplmenubar)
self.mplactionOpen = QtGui.QAction(MplMainWindow)
self.mplactionOpen.setObjectName("mplactionOpen")
self.mplactionQuit = QtGui.QAction(MplMainWindow)
self.mplactionQuit.setObjectName("mplactionQuit")
self.mplmenuFile.addAction(self.mplactionOpen)
self.mplmenuFile.addSeparator()
self.mplmenuFile.addAction(self.mplactionQuit)
self.mplmenubar.addAction(self.mplmenuFile.menuAction())
self.retranslateUi(MplMainWindow)
QtCore.QMetaObject.connectSlotsByName(MplMainWindow)
def retranslateUi(self, MplMainWindow):
MplMainWindow.setWindowTitle(QtGui.QApplication.translate("MplMainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
self.mplpushButton.setText(QtGui.QApplication.translate("MplMainWindow", "PushButton", None, QtGui.QApplication.UnicodeUTF8))
self.mplmenuFile.setTitle(QtGui.QApplication.translate("MplMainWindow", "File", None, QtGui.QApplication.UnicodeUTF8))
self.mplactionOpen.setText(QtGui.QApplication.translate("MplMainWindow", "Open", None, QtGui.QApplication.UnicodeUTF8))
self.mplactionQuit.setText(QtGui.QApplication.translate("MplMainWindow", "Quit", None, QtGui.QApplication.UnicodeUTF8))
示例6: Ui_GpMainWindow
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import sizePolicy [as 别名]
class Ui_GpMainWindow(object):
def setupUi(self, GpMainWindow):
GpMainWindow.setObjectName(_fromUtf8("GpMainWindow"))
GpMainWindow.resize(567, 497)
self.Gpcentralwidget = QtGui.QWidget(GpMainWindow)
self.Gpcentralwidget.setObjectName(_fromUtf8("Gpcentralwidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.Gpcentralwidget)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.Mpl = MplWidget(self.Gpcentralwidget)
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.setObjectName(_fromUtf8("Mpl"))
self.verticalLayout.addWidget(self.Mpl)
self.GpgridLayout = QtGui.QGridLayout()
self.GpgridLayout.setObjectName(_fromUtf8("GpgridLayout"))
self.pushButton = QtGui.QPushButton(self.Gpcentralwidget)
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.GpgridLayout.addWidget(self.pushButton, 0, 1, 1, 1)
self.GppushButton = QtGui.QPushButton(self.Gpcentralwidget)
self.GppushButton.setObjectName(_fromUtf8("GppushButton"))
self.GpgridLayout.addWidget(self.GppushButton, 0, 0, 1, 1)
self.pushButton_2 = QtGui.QPushButton(self.Gpcentralwidget)
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
self.GpgridLayout.addWidget(self.pushButton_2, 0, 2, 1, 1)
self.verticalLayout.addLayout(self.GpgridLayout)
GpMainWindow.setCentralWidget(self.Gpcentralwidget)
self.retranslateUi(GpMainWindow)
QtCore.QObject.connect(self.GppushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), GpMainWindow.slot1)
QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), GpMainWindow.slot1)
QtCore.QObject.connect(self.pushButton_2, QtCore.SIGNAL(_fromUtf8("clicked()")), GpMainWindow.slot1)
QtCore.QMetaObject.connectSlotsByName(GpMainWindow)
def retranslateUi(self, GpMainWindow):
GpMainWindow.setWindowTitle(_translate("GpMainWindow", "Graph Plotter", None))
self.pushButton.setText(_translate("GpMainWindow", "Enfriar", None))
self.GppushButton.setText(_translate("GpMainWindow", "StartPlot", None))
self.pushButton_2.setText(_translate("GpMainWindow", "Calentar", None))
示例7: Ui_MainWindow
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import sizePolicy [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(752, 563)
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_6 = QtGui.QVBoxLayout()
self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
self.groupBox_3 = QtGui.QGroupBox(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.groupBox_3.sizePolicy().hasHeightForWidth())
self.groupBox_3.setSizePolicy(sizePolicy)
self.groupBox_3.setMinimumSize(QtCore.QSize(0, 200))
self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
self.verticalLayout_4 = QtGui.QVBoxLayout(self.groupBox_3)
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
self.mplWidget = MplWidget(self.groupBox_3)
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.setObjectName(_fromUtf8("mplWidget"))
self.verticalLayout_4.addWidget(self.mplWidget)
self.verticalLayout_6.addWidget(self.groupBox_3)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.label_saturation = QtGui.QLabel(self.centralwidget)
self.label_saturation.setObjectName(_fromUtf8("label_saturation"))
self.horizontalLayout.addWidget(self.label_saturation)
self.slider_saturation = QtGui.QSlider(self.centralwidget)
self.slider_saturation.setOrientation(QtCore.Qt.Horizontal)
self.slider_saturation.setObjectName(_fromUtf8("slider_saturation"))
self.horizontalLayout.addWidget(self.slider_saturation)
self.label_percent_value = QtGui.QLabel(self.centralwidget)
self.label_percent_value.setMinimumSize(QtCore.QSize(18, 0))
self.label_percent_value.setLineWidth(2)
self.label_percent_value.setMidLineWidth(2)
self.label_percent_value.setText(_fromUtf8("0"))
self.label_percent_value.setTextFormat(QtCore.Qt.AutoText)
self.label_percent_value.setScaledContents(True)
self.label_percent_value.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
self.label_percent_value.setMargin(0)
self.label_percent_value.setObjectName(_fromUtf8("label_percent_value"))
self.horizontalLayout.addWidget(self.label_percent_value)
self.label_percent_symbol = QtGui.QLabel(self.centralwidget)
self.label_percent_symbol.setObjectName(_fromUtf8("label_percent_symbol"))
self.horizontalLayout.addWidget(self.label_percent_symbol)
self.verticalLayout_6.addLayout(self.horizontalLayout)
self.textBrowser = QtGui.QTextBrowser(self.centralwidget)
self.textBrowser.setMaximumSize(QtCore.QSize(16777215, 200))
self.textBrowser.setObjectName(_fromUtf8("textBrowser"))
self.verticalLayout_6.addWidget(self.textBrowser)
self.horizontalLayout_2.addLayout(self.verticalLayout_6)
self.verticalLayout_5 = QtGui.QVBoxLayout()
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
self.groupBox_2.setMaximumSize(QtCore.QSize(300, 16777215))
self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox_2)
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.listWidget_link = QtGui.QListWidget(self.groupBox_2)
self.listWidget_link.setMaximumSize(QtCore.QSize(300, 16777215))
self.listWidget_link.setObjectName(_fromUtf8("listWidget_link"))
self.verticalLayout_3.addWidget(self.listWidget_link)
self.pushButton_reload = QtGui.QPushButton(self.groupBox_2)
self.pushButton_reload.setObjectName(_fromUtf8("pushButton_reload"))
self.verticalLayout_3.addWidget(self.pushButton_reload)
self.groupBox = QtGui.QGroupBox(self.groupBox_2)
self.groupBox.setObjectName(_fromUtf8("groupBox"))
self.verticalLayout = QtGui.QVBoxLayout(self.groupBox)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.formLayout = QtGui.QFormLayout()
self.formLayout.setObjectName(_fromUtf8("formLayout"))
self.label_C = QtGui.QLabel(self.groupBox)
self.label_C.setObjectName(_fromUtf8("label_C"))
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_C)
self.label_C_value = QtGui.QLabel(self.groupBox)
self.label_C_value.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
self.label_C_value.setObjectName(_fromUtf8("label_C_value"))
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.label_C_value)
self.label_A = QtGui.QLabel(self.groupBox)
self.label_A.setObjectName(_fromUtf8("label_A"))
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_A)
self.label_A_value = QtGui.QLabel(self.groupBox)
self.label_A_value.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
self.label_A_value.setObjectName(_fromUtf8("label_A_value"))
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.label_A_value)
self.label_S = QtGui.QLabel(self.groupBox)
self.label_S.setObjectName(_fromUtf8("label_S"))
self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_S)
self.label_S_value = QtGui.QLabel(self.groupBox)
self.label_S_value.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
self.label_S_value.setObjectName(_fromUtf8("label_S_value"))
self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.label_S_value)
self.label_T = QtGui.QLabel(self.groupBox)
#.........这里部分代码省略.........
示例8: Ui_Form
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import sizePolicy [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(841, 727)
Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
self.horizontalLayout_6 = QtGui.QHBoxLayout(Form)
self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
self.splitter = QtGui.QSplitter(Form)
self.splitter.setOrientation(QtCore.Qt.Horizontal)
self.splitter.setChildrenCollapsible(False)
self.splitter.setObjectName(_fromUtf8("splitter"))
self.widget = QtGui.QWidget(self.splitter)
self.widget.setObjectName(_fromUtf8("widget"))
self.verticalLayout_2 = QtGui.QVBoxLayout(self.widget)
self.verticalLayout_2.setMargin(0)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.groupBox = QtGui.QGroupBox(self.widget)
self.groupBox.setTitle(QtGui.QApplication.translate("Form", "Calibrated device", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox.setObjectName(_fromUtf8("groupBox"))
self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.calibLabel = QtGui.QLabel(self.groupBox)
self.calibLabel.setText(QtGui.QApplication.translate("Form", "No curve loaded", None, QtGui.QApplication.UnicodeUTF8))
self.calibLabel.setObjectName(_fromUtf8("calibLabel"))
self.horizontalLayout.addWidget(self.calibLabel)
self.loadCalibButton = QtGui.QPushButton(self.groupBox)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.loadCalibButton.sizePolicy().hasHeightForWidth())
self.loadCalibButton.setSizePolicy(sizePolicy)
self.loadCalibButton.setText(QtGui.QApplication.translate("Form", "Change curve", None, QtGui.QApplication.UnicodeUTF8))
self.loadCalibButton.setObjectName(_fromUtf8("loadCalibButton"))
self.horizontalLayout.addWidget(self.loadCalibButton)
self.verticalLayout_2.addWidget(self.groupBox)
self.groupBox_3 = QtGui.QGroupBox(self.widget)
self.groupBox_3.setTitle(QtGui.QApplication.translate("Form", "Calibrate from comparative data", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox_3)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.loadComparitiveDataButton = QtGui.QPushButton(self.groupBox_3)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.loadComparitiveDataButton.sizePolicy().hasHeightForWidth())
self.loadComparitiveDataButton.setSizePolicy(sizePolicy)
self.loadComparitiveDataButton.setText(QtGui.QApplication.translate("Form", "Load data", None, QtGui.QApplication.UnicodeUTF8))
self.loadComparitiveDataButton.setFlat(False)
self.loadComparitiveDataButton.setObjectName(_fromUtf8("loadComparitiveDataButton"))
self.horizontalLayout_2.addWidget(self.loadComparitiveDataButton)
self.verticalLayout_2.addWidget(self.groupBox_3)
self.groupBox_2 = QtGui.QGroupBox(self.widget)
self.groupBox_2.setTitle(QtGui.QApplication.translate("Form", "Calibrate from voltage input", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
self.verticalLayout = QtGui.QVBoxLayout(self.groupBox_2)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.formLayout = QtGui.QFormLayout()
self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
self.formLayout.setObjectName(_fromUtf8("formLayout"))
self.calDevInput = QtGui.QComboBox(self.groupBox_2)
self.calDevInput.setObjectName(_fromUtf8("calDevInput"))
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.calDevInput)
self.label = QtGui.QLabel(self.groupBox_2)
self.label.setText(QtGui.QApplication.translate("Form", "New device input", None, QtGui.QApplication.UnicodeUTF8))
self.label.setObjectName(_fromUtf8("label"))
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label)
self.newDevInput = QtGui.QComboBox(self.groupBox_2)
self.newDevInput.setObjectName(_fromUtf8("newDevInput"))
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.newDevInput)
self.label_2 = QtGui.QLabel(self.groupBox_2)
self.label_2.setText(QtGui.QApplication.translate("Form", "Calibrated device input", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setObjectName(_fromUtf8("label_2"))
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2)
self.verticalLayout.addLayout(self.formLayout)
self.tempTriggerCheckBox = QtGui.QCheckBox(self.groupBox_2)
self.tempTriggerCheckBox.setText(QtGui.QApplication.translate("Form", "Trigger By Temperature", None, QtGui.QApplication.UnicodeUTF8))
self.tempTriggerCheckBox.setCheckable(True)
self.tempTriggerCheckBox.setChecked(True)
self.tempTriggerCheckBox.setObjectName(_fromUtf8("tempTriggerCheckBox"))
self.verticalLayout.addWidget(self.tempTriggerCheckBox)
self.tempControlWidget = QtGui.QWidget(self.groupBox_2)
self.tempControlWidget.setEnabled(True)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tempControlWidget.sizePolicy().hasHeightForWidth())
self.tempControlWidget.setSizePolicy(sizePolicy)
self.tempControlWidget.setObjectName(_fromUtf8("tempControlWidget"))
self.verticalLayout_7 = QtGui.QVBoxLayout(self.tempControlWidget)
self.verticalLayout_7.setMargin(0)
self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
self.horizontalLayout_7 = QtGui.QHBoxLayout()
self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
self.currentTempSlider = QtGui.QSlider(self.tempControlWidget)
self.currentTempSlider.setEnabled(False)
self.currentTempSlider.setLayoutDirection(QtCore.Qt.LeftToRight)
self.currentTempSlider.setMaximum(280)
self.currentTempSlider.setTracking(False)
self.currentTempSlider.setOrientation(QtCore.Qt.Vertical)
self.currentTempSlider.setTickPosition(QtGui.QSlider.TicksBelow)
#.........这里部分代码省略.........
示例9: Ui_slicer
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import sizePolicy [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"))
示例10: Ui_MainWindow
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import sizePolicy [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(370, 570)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
MainWindow.setMinimumSize(QtCore.QSize(370, 570))
MainWindow.setMaximumSize(QtCore.QSize(370, 570))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/images/sc_icon_16x16.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
self.centralwidget = QtGui.QWidget(MainWindow)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
self.centralwidget.setSizePolicy(sizePolicy)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.actionsBox = QtGui.QGroupBox(self.centralwidget)
self.actionsBox.setGeometry(QtCore.QRect(10, 0, 351, 211))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Eras Demi ITC"))
font.setItalic(False)
self.actionsBox.setFont(font)
self.actionsBox.setObjectName(_fromUtf8("actionsBox"))
self.label_4 = QtGui.QLabel(self.actionsBox)
self.label_4.setGeometry(QtCore.QRect(250, 140, 16, 16))
self.label_4.setAlignment(QtCore.Qt.AlignCenter)
self.label_4.setWordWrap(True)
self.label_4.setObjectName(_fromUtf8("label_4"))
self.clearButton = QtGui.QPushButton(self.actionsBox)
self.clearButton.setGeometry(QtCore.QRect(10, 170, 61, 31))
font = QtGui.QFont()
font.setPointSize(10)
self.clearButton.setFont(font)
self.clearButton.setObjectName(_fromUtf8("clearButton"))
self.effectlabel = QtGui.QLabel(self.actionsBox)
self.effectlabel.setGeometry(QtCore.QRect(90, 170, 41, 23))
font = QtGui.QFont()
font.setPointSize(10)
self.effectlabel.setFont(font)
self.effectlabel.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignHCenter)
self.effectlabel.setObjectName(_fromUtf8("effectlabel"))
self.rollButton = QtGui.QPushButton(self.actionsBox)
self.rollButton.setGeometry(QtCore.QRect(10, 80, 61, 81))
font = QtGui.QFont()
font.setPointSize(14)
font.setBold(False)
font.setItalic(False)
font.setUnderline(False)
font.setWeight(50)
font.setStrikeOut(False)
font.setKerning(True)
self.rollButton.setFont(font)
self.rollButton.setFlat(False)
self.rollButton.setObjectName(_fromUtf8("rollButton"))
self.label_7 = QtGui.QLabel(self.actionsBox)
self.label_7.setGeometry(QtCore.QRect(200, 140, 21, 16))
self.label_7.setAlignment(QtCore.Qt.AlignCenter)
self.label_7.setWordWrap(True)
self.label_7.setObjectName(_fromUtf8("label_7"))
self.effect_result = QtGui.QLabel(self.actionsBox)
self.effect_result.setGeometry(QtCore.QRect(130, 170, 211, 31))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.effect_result.sizePolicy().hasHeightForWidth())
self.effect_result.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.effect_result.setFont(font)
self.effect_result.setFrameShape(QtGui.QFrame.Box)
self.effect_result.setFrameShadow(QtGui.QFrame.Sunken)
self.effect_result.setText(_fromUtf8(""))
self.effect_result.setAlignment(QtCore.Qt.AlignCenter)
self.effect_result.setObjectName(_fromUtf8("effect_result"))
self.label = QtGui.QLabel(self.actionsBox)
self.label.setGeometry(QtCore.QRect(10, 20, 351, 20))
font = QtGui.QFont()
font.setPointSize(10)
self.label.setFont(font)
self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label.setObjectName(_fromUtf8("label"))
self.diffdial = QtGui.QDial(self.actionsBox)
self.diffdial.setGeometry(QtCore.QRect(200, 80, 71, 71))
self.diffdial.setMinimum(-6)
self.diffdial.setMaximum(6)
self.diffdial.setSingleStep(2)
self.diffdial.setPageStep(2)
self.diffdial.setSliderPosition(0)
self.diffdial.setTracking(True)
self.diffdial.setWrapping(False)
self.diffdial.setNotchTarget(3.7)
self.diffdial.setNotchesVisible(True)
self.diffdial.setObjectName(_fromUtf8("diffdial"))
#.........这里部分代码省略.........
示例11: Ui_MplMainWindow
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import sizePolicy [as 别名]
class Ui_MplMainWindow(object):
def setupUi(self, MplMainWindow):
MplMainWindow.setObjectName("MplMainWindow")
MplMainWindow.resize(607, 434)
self.mplcentralwidget = QtGui.QWidget(MplMainWindow)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mplcentralwidget.sizePolicy().hasHeightForWidth())
self.mplcentralwidget.setSizePolicy(sizePolicy)
self.mplcentralwidget.setObjectName("mplcentralwidget")
self.verticalLayout_2 = QtGui.QVBoxLayout(self.mplcentralwidget)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.mplhorizontalLayout = QtGui.QHBoxLayout()
self.mplhorizontalLayout.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
self.mplhorizontalLayout.setObjectName("mplhorizontalLayout")
self.mpllineEdit = QtGui.QLineEdit(self.mplcentralwidget)
self.mpllineEdit.setMinimumSize(QtCore.QSize(489, 21))
self.mpllineEdit.setObjectName("mpllineEdit")
self.mplhorizontalLayout.addWidget(self.mpllineEdit)
self.mplpushButton = QtGui.QPushButton(self.mplcentralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mplpushButton.sizePolicy().hasHeightForWidth())
self.mplpushButton.setSizePolicy(sizePolicy)
self.mplpushButton.setMinimumSize(QtCore.QSize(91, 25))
self.mplpushButton.setObjectName("mplpushButton")
self.mplhorizontalLayout.addWidget(self.mplpushButton)
self.verticalLayout_2.addLayout(self.mplhorizontalLayout)
self.mpl = MplWidget(self.mplcentralwidget)
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.setObjectName("mpl")
self.verticalLayout_2.addWidget(self.mpl)
MplMainWindow.setCentralWidget(self.mplcentralwidget)
self.mplmenuBar = QtGui.QMenuBar(MplMainWindow)
self.mplmenuBar.setGeometry(QtCore.QRect(0, 0, 607, 25))
self.mplmenuBar.setObjectName("mplmenuBar")
self.mplmenuFile = QtGui.QMenu(self.mplmenuBar)
self.mplmenuFile.setObjectName("mplmenuFile")
MplMainWindow.setMenuBar(self.mplmenuBar)
self.mplactionOpen = QtGui.QAction(MplMainWindow)
self.mplactionOpen.setIconVisibleInMenu(False)
self.mplactionOpen.setObjectName("mplactionOpen")
self.mplactionQuit = QtGui.QAction(MplMainWindow)
self.mplactionQuit.setObjectName("mplactionQuit")
self.mplmenuFile.addAction(self.mplactionOpen)
self.mplmenuFile.addSeparator()
self.mplmenuFile.addAction(self.mplactionQuit)
self.mplmenuBar.addAction(self.mplmenuFile.menuAction())
self.retranslateUi(MplMainWindow)
QtCore.QMetaObject.connectSlotsByName(MplMainWindow)
def retranslateUi(self, MplMainWindow):
MplMainWindow.setWindowTitle(QtGui.QApplication.translate("MplMainWindow", "Matplotlib In Qt Designer - Count letters frequency in a file", None, QtGui.QApplication.UnicodeUTF8))
self.mpllineEdit.setText(QtGui.QApplication.translate("MplMainWindow", "/usr/share/dict/words", None, QtGui.QApplication.UnicodeUTF8))
self.mplpushButton.setText(QtGui.QApplication.translate("MplMainWindow", "Parse this file", None, QtGui.QApplication.UnicodeUTF8))
self.mplmenuFile.setTitle(QtGui.QApplication.translate("MplMainWindow", "File", None, QtGui.QApplication.UnicodeUTF8))
self.mplactionOpen.setText(QtGui.QApplication.translate("MplMainWindow", "Open", None, QtGui.QApplication.UnicodeUTF8))
self.mplactionQuit.setText(QtGui.QApplication.translate("MplMainWindow", "Quit", None, QtGui.QApplication.UnicodeUTF8))
示例12: Ui_MplMainWindow
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import sizePolicy [as 别名]
class Ui_MplMainWindow(object):
def setupUi(self, MplMainWindow):
MplMainWindow.setObjectName(_fromUtf8("MplMainWindow"))
MplMainWindow.resize(906, 785)
self.centralwidget = QtGui.QWidget(MplMainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.lineEdit = QtGui.QLineEdit(self.centralwidget)
self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
self.horizontalLayout.addWidget(self.lineEdit)
self.pushButton = QtGui.QPushButton(self.centralwidget)
self.pushButton.setLayoutDirection(QtCore.Qt.LeftToRight)
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.horizontalLayout.addWidget(self.pushButton)
self.verticalLayout.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.label = QtGui.QLabel(self.centralwidget)
self.label.setObjectName(_fromUtf8("label"))
self.horizontalLayout_2.addWidget(self.label)
self.lineEdit_2 = QtGui.QLineEdit(self.centralwidget)
self.lineEdit_2.setMaximumSize(QtCore.QSize(16777215, 27))
self.lineEdit_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2"))
self.horizontalLayout_2.addWidget(self.lineEdit_2)
self.pushButton_2 = QtGui.QPushButton(self.centralwidget)
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
self.horizontalLayout_2.addWidget(self.pushButton_2)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.horizontalLayout_3 = QtGui.QHBoxLayout()
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.pushButton_3 = QtGui.QPushButton(self.centralwidget)
self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
self.horizontalLayout_3.addWidget(self.pushButton_3)
self.pushButton_4 = QtGui.QPushButton(self.centralwidget)
self.pushButton_4.setObjectName(_fromUtf8("pushButton_4"))
self.horizontalLayout_3.addWidget(self.pushButton_4)
self.pushButton_5 = QtGui.QPushButton(self.centralwidget)
self.pushButton_5.setEnabled(False)
self.pushButton_5.setObjectName(_fromUtf8("pushButton_5"))
self.horizontalLayout_3.addWidget(self.pushButton_5)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.widget = MplWidget(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
self.widget.setSizePolicy(sizePolicy)
self.widget.setObjectName(_fromUtf8("widget"))
self.verticalLayout.addWidget(self.widget)
MplMainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MplMainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 906, 25))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setObjectName(_fromUtf8("menuFile"))
self.menuAbout = QtGui.QMenu(self.menubar)
self.menuAbout.setObjectName(_fromUtf8("menuAbout"))
MplMainWindow.setMenuBar(self.menubar)
self.toolBar = QtGui.QToolBar(MplMainWindow)
self.toolBar.setObjectName(_fromUtf8("toolBar"))
MplMainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
self.actionOpen = QtGui.QAction(MplMainWindow)
self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
self.actionQuit = QtGui.QAction(MplMainWindow)
self.actionQuit.setObjectName(_fromUtf8("actionQuit"))
self.actionAbout = QtGui.QAction(MplMainWindow)
self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
self.menuFile.addAction(self.actionOpen)
self.menuFile.addSeparator()
self.menuFile.addAction(self.actionQuit)
self.menuAbout.addAction(self.actionAbout)
self.menubar.addAction(self.menuFile.menuAction())
self.menubar.addAction(self.menuAbout.menuAction())
self.retranslateUi(MplMainWindow)
QtCore.QMetaObject.connectSlotsByName(MplMainWindow)
def retranslateUi(self, MplMainWindow):
MplMainWindow.setWindowTitle(_translate("MplMainWindow", "MainWindow", None))
self.lineEdit.setText(_translate("MplMainWindow", "sample_representation.txt", None))
self.pushButton.setText(_translate("MplMainWindow", "Read", None))
self.label.setText(_translate("MplMainWindow", "Nodes", None))
self.lineEdit_2.setText(_translate("MplMainWindow", "4", None))
self.pushButton_2.setText(_translate("MplMainWindow", "Generate", None))
self.pushButton_3.setText(_translate("MplMainWindow", "Colour It! [Log]", None))
self.pushButton_4.setText(_translate("MplMainWindow", "Color It! [Log*]", None))
self.pushButton_5.setText(_translate("MplMainWindow", "MIS", None))
self.menuFile.setTitle(_translate("MplMainWindow", "File", None))
self.menuAbout.setTitle(_translate("MplMainWindow", "About", None))
self.toolBar.setWindowTitle(_translate("MplMainWindow", "toolBar", None))
self.actionOpen.setText(_translate("MplMainWindow", "Open", None))
self.actionQuit.setText(_translate("MplMainWindow", "Quit", None))
self.actionAbout.setText(_translate("MplMainWindow", "About", None))
示例13: Ui_Form
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import sizePolicy [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(753, 498)
Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
self.horizontalLayout_3 = QtGui.QHBoxLayout(Form)
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.verticalLayout_3 = QtGui.QVBoxLayout()
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout_9 = QtGui.QHBoxLayout()
self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
self.label_11 = QtGui.QLabel(Form)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_11.sizePolicy().hasHeightForWidth())
self.label_11.setSizePolicy(sizePolicy)
self.label_11.setText(QtGui.QApplication.translate("Form", "X Axis:", None, QtGui.QApplication.UnicodeUTF8))
self.label_11.setAlignment(QtCore.Qt.AlignCenter)
self.label_11.setObjectName(_fromUtf8("label_11"))
self.horizontalLayout_9.addWidget(self.label_11)
self.x_unit_type_box = QtGui.QComboBox(Form)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.x_unit_type_box.sizePolicy().hasHeightForWidth())
self.x_unit_type_box.setSizePolicy(sizePolicy)
self.x_unit_type_box.setObjectName(_fromUtf8("x_unit_type_box"))
self.x_unit_type_box.addItem(_fromUtf8(""))
self.x_unit_type_box.setItemText(0, QtGui.QApplication.translate("Form", "Wavelength", None, QtGui.QApplication.UnicodeUTF8))
self.x_unit_type_box.addItem(_fromUtf8(""))
self.x_unit_type_box.setItemText(1, QtGui.QApplication.translate("Form", "Wavenumber", None, QtGui.QApplication.UnicodeUTF8))
self.x_unit_type_box.addItem(_fromUtf8(""))
self.x_unit_type_box.setItemText(2, QtGui.QApplication.translate("Form", "Energy", None, QtGui.QApplication.UnicodeUTF8))
self.horizontalLayout_9.addWidget(self.x_unit_type_box)
self.label_12 = QtGui.QLabel(Form)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth())
self.label_12.setSizePolicy(sizePolicy)
self.label_12.setText(QtGui.QApplication.translate("Form", "in", None, QtGui.QApplication.UnicodeUTF8))
self.label_12.setObjectName(_fromUtf8("label_12"))
self.horizontalLayout_9.addWidget(self.label_12)
self.stackedWidget = QtGui.QStackedWidget(Form)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.stackedWidget.sizePolicy().hasHeightForWidth())
self.stackedWidget.setSizePolicy(sizePolicy)
self.stackedWidget.setObjectName(_fromUtf8("stackedWidget"))
self.page_3 = QtGui.QWidget()
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.page_3.sizePolicy().hasHeightForWidth())
self.page_3.setSizePolicy(sizePolicy)
self.page_3.setObjectName(_fromUtf8("page_3"))
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.page_3)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.wavelength_units = QtGui.QComboBox(self.page_3)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.wavelength_units.sizePolicy().hasHeightForWidth())
self.wavelength_units.setSizePolicy(sizePolicy)
self.wavelength_units.setObjectName(_fromUtf8("wavelength_units"))
self.wavelength_units.addItem(_fromUtf8(""))
self.wavelength_units.setItemText(0, QtGui.QApplication.translate("Form", "Nanometres", None, QtGui.QApplication.UnicodeUTF8))
self.wavelength_units.addItem(_fromUtf8(""))
self.wavelength_units.setItemText(1, QtGui.QApplication.translate("Form", "Metres", None, QtGui.QApplication.UnicodeUTF8))
self.wavelength_units.addItem(_fromUtf8(""))
self.wavelength_units.setItemText(2, QtGui.QApplication.translate("Form", "Angstroms", None, QtGui.QApplication.UnicodeUTF8))
self.wavelength_units.addItem(_fromUtf8(""))
self.wavelength_units.setItemText(3, QtGui.QApplication.translate("Form", "Furlongs", None, QtGui.QApplication.UnicodeUTF8))
self.horizontalLayout_2.addWidget(self.wavelength_units)
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.stackedWidget.addWidget(self.page_3)
self.page = QtGui.QWidget()
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.page.sizePolicy().hasHeightForWidth())
self.page.setSizePolicy(sizePolicy)
self.page.setObjectName(_fromUtf8("page"))
self.horizontalLayout_6 = QtGui.QHBoxLayout(self.page)
self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
self.wavenumber_units = QtGui.QComboBox(self.page)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.wavenumber_units.sizePolicy().hasHeightForWidth())
self.wavenumber_units.setSizePolicy(sizePolicy)
self.wavenumber_units.setObjectName(_fromUtf8("wavenumber_units"))
self.wavenumber_units.addItem(_fromUtf8(""))
self.wavenumber_units.setItemText(0, QtGui.QApplication.translate("Form", "Inverse Nanometres", None, QtGui.QApplication.UnicodeUTF8))
self.wavenumber_units.addItem(_fromUtf8(""))
#.........这里部分代码省略.........
示例14: Ui_MplMainWindow
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import sizePolicy [as 别名]
class Ui_MplMainWindow(object):
def setupUi(self, MplMainWindow):
MplMainWindow.setObjectName(_fromUtf8("MplMainWindow"))
MplMainWindow.resize(828, 639)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MplMainWindow.sizePolicy().hasHeightForWidth())
MplMainWindow.setSizePolicy(sizePolicy)
self.mplcentralwidget = QtGui.QWidget(MplMainWindow)
self.mplcentralwidget.setObjectName(_fromUtf8("mplcentralwidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.mplcentralwidget)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.mpl_1 = MplWidget(self.mplcentralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mpl_1.sizePolicy().hasHeightForWidth())
self.mpl_1.setSizePolicy(sizePolicy)
self.mpl_1.setObjectName(_fromUtf8("mpl_1"))
self.verticalLayout.addWidget(self.mpl_1)
self.horizontalGroupBox = QtGui.QGroupBox(self.mplcentralwidget)
self.horizontalGroupBox.setFlat(True)
self.horizontalGroupBox.setCheckable(False)
self.horizontalGroupBox.setObjectName(_fromUtf8("horizontalGroupBox"))
self.horizontalLayout_3 = QtGui.QHBoxLayout(self.horizontalGroupBox)
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.horizontalGroupBox1 = QtGui.QGroupBox(self.horizontalGroupBox)
self.horizontalGroupBox1.setObjectName(_fromUtf8("horizontalGroupBox1"))
self.horizontalLayout_4 = QtGui.QHBoxLayout(self.horizontalGroupBox1)
self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem)
self.label_3 = QtGui.QLabel(self.horizontalGroupBox1)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.horizontalLayout_4.addWidget(self.label_3)
spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem1)
self.qwpLineEdit = QtGui.QLineEdit(self.horizontalGroupBox1)
self.qwpLineEdit.setAlignment(QtCore.Qt.AlignCenter)
self.qwpLineEdit.setObjectName(_fromUtf8("qwpLineEdit"))
self.horizontalLayout_4.addWidget(self.qwpLineEdit)
self.horizontalLayout_3.addWidget(self.horizontalGroupBox1)
self.gridGroupBox = QtGui.QGroupBox(self.horizontalGroupBox)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(60)
sizePolicy.setHeightForWidth(self.gridGroupBox.sizePolicy().hasHeightForWidth())
self.gridGroupBox.setSizePolicy(sizePolicy)
self.gridGroupBox.setObjectName(_fromUtf8("gridGroupBox"))
self.horizontalLayout = QtGui.QHBoxLayout(self.gridGroupBox)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem2)
self.label = QtGui.QLabel(self.gridGroupBox)
self.label.setObjectName(_fromUtf8("label"))
self.horizontalLayout.addWidget(self.label)
spacerItem3 = QtGui.QSpacerItem(60, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem3)
self.polLineEdit = QtGui.QLineEdit(self.gridGroupBox)
self.polLineEdit.setInputMask(_fromUtf8(""))
self.polLineEdit.setAlignment(QtCore.Qt.AlignCenter)
self.polLineEdit.setObjectName(_fromUtf8("polLineEdit"))
self.horizontalLayout.addWidget(self.polLineEdit)
self.horizontalLayout_3.addWidget(self.gridGroupBox)
self.generateButton = QtGui.QPushButton(self.horizontalGroupBox)
self.generateButton.setAcceptDrops(False)
self.generateButton.setCheckable(False)
self.generateButton.setAutoDefault(False)
self.generateButton.setDefault(False)
self.generateButton.setFlat(False)
self.generateButton.setObjectName(_fromUtf8("generateButton"))
self.horizontalLayout_3.addWidget(self.generateButton)
self.verticalLayout.addWidget(self.horizontalGroupBox)
self.horizontalGroupBox2 = QtGui.QGroupBox(self.mplcentralwidget)
self.horizontalGroupBox2.setFlat(True)
self.horizontalGroupBox2.setObjectName(_fromUtf8("horizontalGroupBox2"))
self.horizontalLayout_6 = QtGui.QHBoxLayout(self.horizontalGroupBox2)
self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
self.jonesGroupBox = QtGui.QGroupBox(self.horizontalGroupBox2)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(2)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.jonesGroupBox.sizePolicy().hasHeightForWidth())
self.jonesGroupBox.setSizePolicy(sizePolicy)
self.jonesGroupBox.setFlat(False)
self.jonesGroupBox.setCheckable(True)
self.jonesGroupBox.setChecked(False)
self.jonesGroupBox.setObjectName(_fromUtf8("jonesGroupBox"))
self.horizontalLayout_5 = QtGui.QHBoxLayout(self.jonesGroupBox)
self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
self.verticalFrame = QtGui.QFrame(self.jonesGroupBox)
self.verticalFrame.setObjectName(_fromUtf8("verticalFrame"))
self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalFrame)
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.label_2 = QtGui.QLabel(self.verticalFrame)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.verticalLayout_3.addWidget(self.label_2)
self.label_6 = QtGui.QLabel(self.verticalFrame)
self.label_6.setObjectName(_fromUtf8("label_6"))
#.........这里部分代码省略.........
示例15: Ui_MainWindow
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import sizePolicy [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(833, 528)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
MainWindow.setAutoFillBackground(True)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setSpacing(6)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
self.tabWidget.setEnabled(True)
self.tabWidget.setTabPosition(QtGui.QTabWidget.North)
self.tabWidget.setTabShape(QtGui.QTabWidget.Rounded)
self.tabWidget.setElideMode(QtCore.Qt.ElideNone)
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.tab_backtest_setup_run = QtGui.QWidget()
self.tab_backtest_setup_run.setObjectName(_fromUtf8("tab_backtest_setup_run"))
self.horizontalLayout_4 = QtGui.QHBoxLayout(self.tab_backtest_setup_run)
self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
self.frame_4 = QtGui.QFrame(self.tab_backtest_setup_run)
self.frame_4.setEnabled(True)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frame_4.sizePolicy().hasHeightForWidth())
self.frame_4.setSizePolicy(sizePolicy)
self.frame_4.setMinimumSize(QtCore.QSize(270, 0))
self.frame_4.setFrameShape(QtGui.QFrame.NoFrame)
self.frame_4.setFrameShadow(QtGui.QFrame.Raised)
self.frame_4.setLineWidth(1)
self.frame_4.setObjectName(_fromUtf8("frame_4"))
self.verticalLayout_5 = QtGui.QVBoxLayout(self.frame_4)
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
self.verticalLayout_4 = QtGui.QVBoxLayout()
self.verticalLayout_4.setSpacing(0)
self.verticalLayout_4.setContentsMargins(-1, 0, -1, -1)
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
self.frame = QtGui.QFrame(self.frame_4)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
self.frame.setSizePolicy(sizePolicy)
self.frame.setMinimumSize(QtCore.QSize(250, 250))
self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
self.frame.setFrameShadow(QtGui.QFrame.Raised)
self.frame.setObjectName(_fromUtf8("frame"))
self.comboBox_instrument = QtGui.QComboBox(self.frame)
self.comboBox_instrument.setGeometry(QtCore.QRect(10, 50, 51, 31))
self.comboBox_instrument.setObjectName(_fromUtf8("comboBox_instrument"))
self.comboBox_instrument.addItem(_fromUtf8(""))
self.comboBox_instrument.addItem(_fromUtf8(""))
self.comboBox_instrument.addItem(_fromUtf8(""))
self.label = QtGui.QLabel(self.frame)
self.label.setGeometry(QtCore.QRect(10, 30, 81, 21))
self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label.setObjectName(_fromUtf8("label"))
self.label_3 = QtGui.QLabel(self.frame)
self.label_3.setGeometry(QtCore.QRect(10, 90, 81, 21))
self.label_3.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.spinBox_range = QtGui.QSpinBox(self.frame)
self.spinBox_range.setGeometry(QtCore.QRect(10, 110, 51, 31))
self.spinBox_range.setProperty("value", 10)
self.spinBox_range.setObjectName(_fromUtf8("spinBox_range"))
self.dateEdit_start_date = QtGui.QDateEdit(self.frame)
self.dateEdit_start_date.setGeometry(QtCore.QRect(120, 50, 121, 31))
self.dateEdit_start_date.setCalendarPopup(True)
self.dateEdit_start_date.setDate(QtCore.QDate(2013, 9, 10))
self.dateEdit_start_date.setObjectName(_fromUtf8("dateEdit_start_date"))
self.label_4 = QtGui.QLabel(self.frame)
self.label_4.setGeometry(QtCore.QRect(120, 30, 81, 21))
self.label_4.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_4.setObjectName(_fromUtf8("label_4"))
self.label_5 = QtGui.QLabel(self.frame)
self.label_5.setGeometry(QtCore.QRect(120, 90, 81, 21))
self.label_5.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_5.setObjectName(_fromUtf8("label_5"))
self.dateEdit_end_date = QtGui.QDateEdit(self.frame)
self.dateEdit_end_date.setGeometry(QtCore.QRect(120, 110, 121, 31))
self.dateEdit_end_date.setCalendarPopup(True)
self.dateEdit_end_date.setDate(QtCore.QDate(2014, 11, 30))
self.dateEdit_end_date.setObjectName(_fromUtf8("dateEdit_end_date"))
self.checkBox_log_intrabar_data = QtGui.QCheckBox(self.frame)
self.checkBox_log_intrabar_data.setGeometry(QtCore.QRect(10, 150, 151, 22))
self.checkBox_log_intrabar_data.setChecked(False)
self.checkBox_log_intrabar_data.setObjectName(_fromUtf8("checkBox_log_intrabar_data"))
self.checkBox_write_trade_data = QtGui.QCheckBox(self.frame)
self.checkBox_write_trade_data.setGeometry(QtCore.QRect(10, 170, 151, 22))
self.checkBox_write_trade_data.setObjectName(_fromUtf8("checkBox_write_trade_data"))
self.checkBox_write_bar_data = QtGui.QCheckBox(self.frame)
self.checkBox_write_bar_data.setGeometry(QtCore.QRect(10, 190, 151, 22))
#.........这里部分代码省略.........