本文整理汇总了Python中matplotlibwidget.MatplotlibWidget.setObjectName方法的典型用法代码示例。如果您正苦于以下问题:Python MatplotlibWidget.setObjectName方法的具体用法?Python MatplotlibWidget.setObjectName怎么用?Python MatplotlibWidget.setObjectName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类matplotlibwidget.MatplotlibWidget
的用法示例。
在下文中一共展示了MatplotlibWidget.setObjectName方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_Form
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setObjectName [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(807, 646)
self.gridLayout = QtGui.QGridLayout(Form)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.cmap = QtGui.QComboBox(Form)
self.cmap.setObjectName(_fromUtf8("cmap"))
self.cmap.addItem(_fromUtf8(""))
self.cmap.addItem(_fromUtf8(""))
self.cmap.addItem(_fromUtf8(""))
self.cmap.addItem(_fromUtf8(""))
self.cmap.addItem(_fromUtf8(""))
self.cmap.addItem(_fromUtf8(""))
self.cmap.addItem(_fromUtf8(""))
self.verticalLayout.addWidget(self.cmap)
self.mplwidget = MatplotlibWidget(Form)
self.mplwidget.setObjectName(_fromUtf8("mplwidget"))
self.verticalLayout.addWidget(self.mplwidget)
self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "ComplexAB", None))
self.cmap.setItemText(0, _translate("Form", "gray", None))
self.cmap.setItemText(1, _translate("Form", "prism", None))
self.cmap.setItemText(2, _translate("Form", "autumn", None))
self.cmap.setItemText(3, _translate("Form", "cool", None))
self.cmap.setItemText(4, _translate("Form", "spring", None))
self.cmap.setItemText(5, _translate("Form", "summer", None))
self.cmap.setItemText(6, _translate("Form", "winter", None))
示例2: Ui_MainWindow
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(800, 600)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.mpl = MatplotlibWidget(self.centralwidget)
self.mpl.setGeometry(QtCore.QRect(130, 70, 561, 291))
self.mpl.setObjectName(_fromUtf8("mpl"))
self.pushButton = QtGui.QPushButton(self.centralwidget)
self.pushButton.setGeometry(QtCore.QRect(150, 430, 75, 23))
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.pushButton_2 = QtGui.QPushButton(self.centralwidget)
self.pushButton_2.setGeometry(QtCore.QRect(290, 430, 75, 23))
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 21))
self.menubar.setObjectName(_fromUtf8("menubar"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
self.pushButton.setText(_translate("MainWindow", "Plot", None))
self.pushButton_2.setText(_translate("MainWindow", "Clear", None))
示例3: Ui_Period_Filter_Dialog
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setObjectName [as 别名]
class Ui_Period_Filter_Dialog(object):
def setupUi(self, Period_Filter_Dialog):
Period_Filter_Dialog.setObjectName(_fromUtf8("Period_Filter_Dialog"))
Period_Filter_Dialog.resize(486, 390)
Period_Filter_Dialog.setWindowTitle(QtGui.QApplication.translate("Period_Filter_Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8))
self.buttonBox = QtGui.QDialogButtonBox(Period_Filter_Dialog)
self.buttonBox.setGeometry(QtCore.QRect(140, 350, 341, 32))
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.Period_Filter_Plot = MatplotlibWidget(Period_Filter_Dialog)
self.Period_Filter_Plot.setGeometry(QtCore.QRect(0, 0, 491, 300))
self.Period_Filter_Plot.setObjectName(_fromUtf8("Period_Filter_Plot"))
self.Filter_start = QtGui.QLineEdit(Period_Filter_Dialog)
self.Filter_start.setGeometry(QtCore.QRect(20, 340, 71, 20))
self.Filter_start.setObjectName(_fromUtf8("Filter_start"))
self.Filter_end = QtGui.QLineEdit(Period_Filter_Dialog)
self.Filter_end.setGeometry(QtCore.QRect(100, 340, 81, 20))
self.Filter_end.setObjectName(_fromUtf8("Filter_end"))
self.label = QtGui.QLabel(Period_Filter_Dialog)
self.label.setGeometry(QtCore.QRect(60, 320, 81, 16))
self.label.setText(QtGui.QApplication.translate("Period_Filter_Dialog", "Filtering Range", None, QtGui.QApplication.UnicodeUTF8))
self.label.setObjectName(_fromUtf8("label"))
self.retranslateUi(Period_Filter_Dialog)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Period_Filter_Dialog.accept)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Period_Filter_Dialog.reject)
QtCore.QMetaObject.connectSlotsByName(Period_Filter_Dialog)
def retranslateUi(self, Period_Filter_Dialog):
pass
示例4: Ui_MainWindow
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(815, 676)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.mplcanvas = MatplotlibWidget(self.centralwidget)
self.mplcanvas.setObjectName(_fromUtf8("mplcanvas"))
self.verticalLayout.addWidget(self.mplcanvas)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 815, 19))
self.menubar.setObjectName(_fromUtf8("menubar"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
示例5: Ui_MainWindow
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(800, 600)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.gridLayout = QtGui.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.mplwidget = MatplotlibWidget(self.centralwidget)
self.mplwidget.setObjectName(_fromUtf8("mplwidget"))
self.gridLayout.addWidget(self.mplwidget, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 21))
self.menubar.setObjectName(_fromUtf8("menubar"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
示例6: Ui_Currencies
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setObjectName [as 别名]
class Ui_Currencies(object):
def setupUi(self, Currencies):
Currencies.setObjectName(_fromUtf8("Currencies"))
Currencies.resize(845, 453)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(Currencies.sizePolicy().hasHeightForWidth())
Currencies.setSizePolicy(sizePolicy)
Currencies.setDockOptions(QtGui.QMainWindow.AllowNestedDocks|QtGui.QMainWindow.AllowTabbedDocks|QtGui.QMainWindow.AnimatedDocks)
self.centralwidget = QtGui.QWidget(Currencies)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.mplwidget = MatplotlibWidget(self.centralwidget)
self.mplwidget.setObjectName(_fromUtf8("mplwidget"))
self.verticalLayout.addWidget(self.mplwidget)
Currencies.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(Currencies)
self.menubar.setGeometry(QtCore.QRect(0, 0, 845, 21))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuView = QtGui.QMenu(self.menubar)
self.menuView.setObjectName(_fromUtf8("menuView"))
Currencies.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(Currencies)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
Currencies.setStatusBar(self.statusbar)
self.toolBar = QtGui.QToolBar(Currencies)
self.toolBar.setObjectName(_fromUtf8("toolBar"))
Currencies.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
self.Options_DW_2 = QtGui.QDockWidget(Currencies)
self.Options_DW_2.setObjectName(_fromUtf8("Options_DW_2"))
self.dockWidgetContents_2 = QtGui.QWidget()
self.dockWidgetContents_2.setObjectName(_fromUtf8("dockWidgetContents_2"))
self.formLayout = QtGui.QFormLayout(self.dockWidgetContents_2)
self.formLayout.setObjectName(_fromUtf8("formLayout"))
self.CSel_CB = QtGui.QComboBox(self.dockWidgetContents_2)
self.CSel_CB.setObjectName(_fromUtf8("CSel_CB"))
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.CSel_CB)
self.Options_DW_2.setWidget(self.dockWidgetContents_2)
Currencies.addDockWidget(QtCore.Qt.DockWidgetArea(4), self.Options_DW_2)
self.actionShow_Options = QtGui.QAction(Currencies)
self.actionShow_Options.setObjectName(_fromUtf8("actionShow_Options"))
self.menuView.addAction(self.actionShow_Options)
self.menubar.addAction(self.menuView.menuAction())
self.retranslateUi(Currencies)
QtCore.QMetaObject.connectSlotsByName(Currencies)
def retranslateUi(self, Currencies):
Currencies.setWindowTitle(_translate("Currencies", "Currencies", None))
self.menuView.setTitle(_translate("Currencies", "View", None))
self.toolBar.setWindowTitle(_translate("Currencies", "toolBar", None))
self.Options_DW_2.setWindowTitle(_translate("Currencies", "Options", None))
self.actionShow_Options.setText(_translate("Currencies", "Show Options", None))
示例7: Ui_Form
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setObjectName [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(504, 389)
self.gridLayout = QtGui.QGridLayout(Form)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.mplwidget = MatplotlibWidget(Form)
self.mplwidget.setObjectName(_fromUtf8("mplwidget"))
self.gridLayout.addWidget(self.mplwidget, 0, 0, 1, 1)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "Form", None))
示例8: Ui_MainWindow
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(800, 600)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.gridLayout = QtGui.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.matplotlibwidget = MatplotlibWidget(self.centralwidget)
self.matplotlibwidget.setObjectName(_fromUtf8("matplotlibwidget"))
self.gridLayout.addWidget(self.matplotlibwidget, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
示例9: Ui_MainWindow
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(421, 422)
MainWindow.setWindowTitle(
QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8)
)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.banana = MatplotlibWidget(self.centralwidget)
self.banana.setObjectName(_fromUtf8("banana"))
self.verticalLayout.addWidget(self.banana)
self.pushButton = QtGui.QPushButton(self.centralwidget)
self.pushButton.setText(
QtGui.QApplication.translate("MainWindow", "PushButton", None, QtGui.QApplication.UnicodeUTF8)
)
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.verticalLayout.addWidget(self.pushButton)
self.pushButton_2 = QtGui.QPushButton(self.centralwidget)
self.pushButton_2.setText(
QtGui.QApplication.translate("MainWindow", "Yay!", None, QtGui.QApplication.UnicodeUTF8)
)
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
self.verticalLayout.addWidget(self.pushButton_2)
self.verticalLayout_2.addLayout(self.verticalLayout)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 421, 21))
self.menubar.setObjectName(_fromUtf8("menubar"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
pass
示例10: Ui_plotWindow
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setObjectName [as 别名]
class Ui_plotWindow(object):
def setupUi(self, plotWindow):
plotWindow.setObjectName(_fromUtf8("plotWindow"))
plotWindow.resize(800, 600)
self.centralwidget = QtGui.QWidget(plotWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.mplWidget = MatplotlibWidget(self.centralwidget)
self.mplWidget.setGeometry(QtCore.QRect(10, 10, 781, 561))
self.mplWidget.setObjectName(_fromUtf8("mplWidget"))
plotWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtGui.QStatusBar(plotWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
plotWindow.setStatusBar(self.statusbar)
self.retranslateUi(plotWindow)
QtCore.QMetaObject.connectSlotsByName(plotWindow)
def retranslateUi(self, plotWindow):
plotWindow.setWindowTitle(_translate("plotWindow", "Plot Window", None))
示例11: Ui_Form
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setObjectName [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(1022, 962)
self.gridLayout_2 = QtGui.QGridLayout(Form)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
self.gridLayout = QtGui.QGridLayout()
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.Wedge1Layout = QtGui.QVBoxLayout()
self.Wedge1Layout.setObjectName(_fromUtf8("Wedge1Layout"))
self.comboBox_cmap1 = QtGui.QComboBox(Form)
self.comboBox_cmap1.setObjectName(_fromUtf8("comboBox_cmap1"))
self.comboBox_cmap1.addItem(_fromUtf8(""))
self.comboBox_cmap1.addItem(_fromUtf8(""))
self.comboBox_cmap1.addItem(_fromUtf8(""))
self.comboBox_cmap1.addItem(_fromUtf8(""))
self.comboBox_cmap1.addItem(_fromUtf8(""))
self.comboBox_cmap1.addItem(_fromUtf8(""))
self.comboBox_cmap1.addItem(_fromUtf8(""))
self.Wedge1Layout.addWidget(self.comboBox_cmap1)
self.MLCAlignWidget = MatplotlibWidget(Form)
self.MLCAlignWidget.setObjectName(_fromUtf8("MLCAlignWidget"))
self.Wedge1Layout.addWidget(self.MLCAlignWidget)
self.horizontalLayout_2.addLayout(self.Wedge1Layout)
self.gridLayout.addLayout(self.horizontalLayout_2, 0, 0, 1, 1)
self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "MLC Alignment", None))
self.comboBox_cmap1.setItemText(0, _translate("Form", "gray", None))
self.comboBox_cmap1.setItemText(1, _translate("Form", "prism", None))
self.comboBox_cmap1.setItemText(2, _translate("Form", "autumn", None))
self.comboBox_cmap1.setItemText(3, _translate("Form", "cool", None))
self.comboBox_cmap1.setItemText(4, _translate("Form", "spring", None))
self.comboBox_cmap1.setItemText(5, _translate("Form", "summer", None))
self.comboBox_cmap1.setItemText(6, _translate("Form", "winter", None))
示例12: Ui_Form
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setObjectName [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(732, 1028)
self.gridLayout = QtGui.QGridLayout(Form)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.cmap = QtGui.QComboBox(Form)
self.cmap.setObjectName(_fromUtf8("cmap"))
self.cmap.addItem(_fromUtf8(""))
self.cmap.addItem(_fromUtf8(""))
self.cmap.addItem(_fromUtf8(""))
self.cmap.addItem(_fromUtf8(""))
self.cmap.addItem(_fromUtf8(""))
self.cmap.addItem(_fromUtf8(""))
self.cmap.addItem(_fromUtf8(""))
self.verticalLayout.addWidget(self.cmap)
self.Stripes = MatplotlibWidget(Form)
self.Stripes.setObjectName(_fromUtf8("Stripes"))
self.verticalLayout.addWidget(self.Stripes)
self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)
self.ResultsLabel = QtGui.QLabel(Form)
self.ResultsLabel.setObjectName(_fromUtf8("ResultsLabel"))
self.gridLayout.addWidget(self.ResultsLabel, 1, 0, 1, 1)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "Continuous Stripes", None))
self.cmap.setItemText(0, _translate("Form", "gray", None))
self.cmap.setItemText(1, _translate("Form", "prism", None))
self.cmap.setItemText(2, _translate("Form", "autumn", None))
self.cmap.setItemText(3, _translate("Form", "cool", None))
self.cmap.setItemText(4, _translate("Form", "spring", None))
self.cmap.setItemText(5, _translate("Form", "summer", None))
self.cmap.setItemText(6, _translate("Form", "winter", None))
self.ResultsLabel.setText(_translate("Form", "Results:", None))
示例13: Ui_MainWindow
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(800, 600)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.mplwidget = MatplotlibWidget(self.centralwidget)
self.mplwidget.setGeometry(QtCore.QRect(170, 150, 400, 300))
self.mplwidget.setObjectName("mplwidget")
self.mplwidget.setFocus()
self.mplwidget.axes.plot(x,y)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.pushButton = QtGui.QPushButton(self.centralwidget)
self.pushButton.setGeometry(QtCore.QRect(170, 60, 75, 23))
self.pushButton.setObjectName("pushButton")
QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL("clicked()"), self.plot)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def plot(self):
global y
global x
x = [2,3,4]
y = [2,2,1]
self.replot()
def replot(self):
Ui_MainWindow()
ui.setupUi(MainWindow)
示例14: Ui_Dialog
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setObjectName [as 别名]
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName(_fromUtf8("Dialog"))
Dialog.setWindowModality(QtCore.Qt.WindowModal)
Dialog.resize(733, 385)
self.verticalLayout = QtGui.QVBoxLayout(Dialog)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.mplwidget = MatplotlibWidget(Dialog)
self.mplwidget.setObjectName(_fromUtf8("mplwidget"))
self.horizontalLayout.addWidget(self.mplwidget)
self.verticalLayout.addLayout(self.horizontalLayout)
self.gridLayout = QtGui.QGridLayout()
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.checkBoxRemovePTTD = QtGui.QCheckBox(Dialog)
self.checkBoxRemovePTTD.setChecked(True)
self.checkBoxRemovePTTD.setObjectName(_fromUtf8("checkBoxRemovePTTD"))
self.gridLayout.addWidget(self.checkBoxRemovePTTD, 0, 1, 1, 1)
self.lineEditCoefficients = QtGui.QLineEdit(Dialog)
self.lineEditCoefficients.setReadOnly(True)
self.lineEditCoefficients.setObjectName(_fromUtf8("lineEditCoefficients"))
self.gridLayout.addWidget(self.lineEditCoefficients, 0, 0, 1, 1)
self.verticalLayout.addLayout(self.gridLayout)
self.buttonBox = QtGui.QDialogButtonBox(Dialog)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.verticalLayout.addWidget(self.buttonBox)
self.retranslateUi(Dialog)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Zernike fit results", None, QtGui.QApplication.UnicodeUTF8))
self.checkBoxRemovePTTD.setText(QtGui.QApplication.translate("Dialog", "Remove Piston, Tip, Tilt, Defocus", None, QtGui.QApplication.UnicodeUTF8))
示例15: Ui_Form
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setObjectName [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(649, 501)
self.label = QtGui.QLabel(Form)
self.label.setGeometry(QtCore.QRect(260, 30, 171, 16))
font = QtGui.QFont()
font.setPointSize(16)
self.label.setFont(font)
self.label.setObjectName(_fromUtf8("label"))
self.matplotlibwidget = MatplotlibWidget(Form)
self.matplotlibwidget.setGeometry(QtCore.QRect(130, 80, 400, 300))
self.matplotlibwidget.setObjectName(_fromUtf8("matplotlibwidget"))
self.matplotlibwidget.plotDataPoints(x,y)
self.dial = QtGui.QDial(Form)
self.dial.setGeometry(QtCore.QRect(30, 90, 50, 64))
self.dial.setObjectName(_fromUtf8("dial"))
self.label_2 = QtGui.QLabel(Form)
self.label_2.setGeometry(QtCore.QRect(20, 160, 81, 21))
font = QtGui.QFont()
font.setPointSize(14)
self.label_2.setFont(font)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.retranslateUi(Form)
QtCore.QObject.connect(self.dial, QtCore.SIGNAL(_fromUtf8("valueChanged(int)")), self.label_2.setNum)
QtCore.QObject.connect(self.dial, QtCore.SIGNAL(_fromUtf8("valueChanged(int)")), self.matplotlibwidget.update)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "Form", None))
self.label.setText(_translate("Form", "Function: Sin(w.t)", None))
self.label_2.setText(_translate("Form", "TextLabel", None))