本文整理汇总了Python中matplotlibwidget.MatplotlibWidget类的典型用法代码示例。如果您正苦于以下问题:Python MatplotlibWidget类的具体用法?Python MatplotlibWidget怎么用?Python MatplotlibWidget使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了MatplotlibWidget类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: Ui_MainWindow
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))
开发者ID:haphaeu,项目名称:yoshimi,代码行数:31,代码来源:mplwidgt.py
示例2: Ui_Period_Filter_Dialog
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
开发者ID:ArchaeoPY,项目名称:CMD-Calibration,代码行数:31,代码来源:Periodic_filter_gui.py
示例3: Ui_MainWindow
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))
开发者ID:bububut,项目名称:tickviewer,代码行数:25,代码来源:ui_tickviewer.py
示例4: Ui_Form
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))
开发者ID:Jothy,项目名称:RTQA,代码行数:35,代码来源:ComplexAB.py
示例5: Ui_MainWindow
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))
开发者ID:cmoman,项目名称:Sequential_Clearance,代码行数:25,代码来源:ui_matplotlib.py
示例6: Ui_Currencies
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))
开发者ID:m4w3r1ck,项目名称:CNBCC,代码行数:55,代码来源:ui.py
示例7: Ui_Form
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))
开发者ID:Jothy,项目名称:RTQA,代码行数:15,代码来源:MPLWidget.py
示例8: setupUi
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(820, 650)
MainWindow.setAutoFillBackground(False)
MainWindow.setDocumentMode(False)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setContentsMargins(-1, -1, 0, 0)
self.horizontalLayout.setSpacing(10)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.btnAdd = QtGui.QPushButton(self.centralwidget)
self.btnAdd.setObjectName(_fromUtf8("btnAdd"))
self.horizontalLayout.addWidget(self.btnAdd)
self.chkMore = QtGui.QCheckBox(self.centralwidget)
self.chkMore.setObjectName(_fromUtf8("chkMore"))
self.horizontalLayout.addWidget(self.chkMore)
self.verticalLayout.addLayout(self.horizontalLayout)
self.matplotlibwidget = MatplotlibWidget(self.centralwidget)
self.matplotlibwidget.setObjectName(_fromUtf8("matplotlibwidget"))
self.verticalLayout.addWidget(self.matplotlibwidget)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
开发者ID:ninianhong,项目名称:Python-GUI-examples,代码行数:30,代码来源:ui_main.py
示例9: setupUi
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)
开发者ID:coder-guy22296,项目名称:Device_manager,代码行数:33,代码来源:fit_results_design.py
示例10: setupUi
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)
开发者ID:Jothy,项目名称:RTQA,代码行数:27,代码来源:ContStripes.py
示例11: setupUi
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)
开发者ID:imanmirzaie,项目名称:qttests,代码行数:26,代码来源:tt2.py
示例12: setupUi
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)
开发者ID:Jothy,项目名称:RTQA,代码行数:30,代码来源:MLCAlign.py
示例13: setupUi
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)
开发者ID:imanmirzaie,项目名称:qttests,代码行数:31,代码来源:test4.py
示例14: Ui_MainWindow
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))
开发者ID:ninianhong,项目名称:Python-GUI-examples,代码行数:18,代码来源:ui_main.py
示例15: Ui_MainWindow
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
开发者ID:ben741,项目名称:pyDemo,代码行数:43,代码来源:ui_yay.py
示例16: setupUi
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(1034, 538)
self.gridLayout_2 = QtGui.QGridLayout(Form)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
self.gridLayout = QtGui.QGridLayout()
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.cmap1 = QtGui.QComboBox(Form)
self.cmap1.setObjectName(_fromUtf8("cmap1"))
self.cmap1.addItem(_fromUtf8(""))
self.cmap1.addItem(_fromUtf8(""))
self.cmap1.addItem(_fromUtf8(""))
self.cmap1.addItem(_fromUtf8(""))
self.cmap1.addItem(_fromUtf8(""))
self.cmap1.addItem(_fromUtf8(""))
self.cmap1.addItem(_fromUtf8(""))
self.verticalLayout.addWidget(self.cmap1)
self.pyramid1 = MatplotlibWidget(Form)
self.pyramid1.setObjectName(_fromUtf8("pyramid1"))
self.verticalLayout.addWidget(self.pyramid1)
self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)
self.verticalLayout_2 = QtGui.QVBoxLayout()
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.cmap2 = QtGui.QComboBox(Form)
self.cmap2.setObjectName(_fromUtf8("cmap2"))
self.cmap2.addItem(_fromUtf8(""))
self.cmap2.addItem(_fromUtf8(""))
self.cmap2.addItem(_fromUtf8(""))
self.cmap2.addItem(_fromUtf8(""))
self.cmap2.addItem(_fromUtf8(""))
self.cmap2.addItem(_fromUtf8(""))
self.cmap2.addItem(_fromUtf8(""))
self.verticalLayout_2.addWidget(self.cmap2)
self.pyramid2 = MatplotlibWidget(Form)
self.pyramid2.setObjectName(_fromUtf8("pyramid2"))
self.verticalLayout_2.addWidget(self.pyramid2)
self.gridLayout.addLayout(self.verticalLayout_2, 0, 1, 1, 1)
self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
开发者ID:Jothy,项目名称:RTQA,代码行数:43,代码来源:Pyramids.py
示例17: Ui_plotWindow
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))
开发者ID:paegert,项目名称:ebfactory,代码行数:19,代码来源:plotwindowui.py
示例18: Ui_Form
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))
开发者ID:Jothy,项目名称:RTQA,代码行数:41,代码来源:MLCAlign.py
示例19: Ui_Form
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))
开发者ID:Jothy,项目名称:RTQA,代码行数:39,代码来源:ContStripes.py
示例20: Ui_MainWindow
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(690, 426)
MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.mplwidget = MatplotlibWidget(self.centralwidget)
self.mplwidget.setGeometry(QtCore.QRect(10, 10, 661, 371))
self.mplwidget.setObjectName(_fromUtf8("mplwidget"))
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 690, 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
开发者ID:Keyanb,项目名称:g2python,代码行数:24,代码来源:matplot.py
注:本文中的matplotlibwidget.MatplotlibWidget类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论