本文整理汇总了Python中matplotlibwidget.MatplotlibWidget.setToolTip方法的典型用法代码示例。如果您正苦于以下问题:Python MatplotlibWidget.setToolTip方法的具体用法?Python MatplotlibWidget.setToolTip怎么用?Python MatplotlibWidget.setToolTip使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类matplotlibwidget.MatplotlibWidget
的用法示例。
在下文中一共展示了MatplotlibWidget.setToolTip方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_MainWindow
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setToolTip [as 别名]
#.........这里部分代码省略.........
self.band1Label.setGeometry(QtCore.QRect(123, 76, 46, 13))
self.band1Label.setObjectName(_fromUtf8("band1Label"))
self.band2Label = QtGui.QLabel(self.centralwidget)
self.band2Label.setGeometry(QtCore.QRect(363, 76, 46, 13))
self.band2Label.setObjectName(_fromUtf8("band2Label"))
self.band3Label = QtGui.QLabel(self.centralwidget)
self.band3Label.setGeometry(QtCore.QRect(603, 76, 46, 13))
self.band3Label.setObjectName(_fromUtf8("band3Label"))
self.band4Label = QtGui.QLabel(self.centralwidget)
self.band4Label.setGeometry(QtCore.QRect(843, 76, 46, 13))
self.band4Label.setObjectName(_fromUtf8("band4Label"))
self.linPhaseRadioButton = QtGui.QRadioButton(self.centralwidget)
self.linPhaseRadioButton.setGeometry(QtCore.QRect(290, 10, 82, 21))
self.linPhaseRadioButton.setChecked(True)
self.linPhaseRadioButton.setObjectName(_fromUtf8("linPhaseRadioButton"))
self.minPhaseRadioButton = QtGui.QRadioButton(self.centralwidget)
self.minPhaseRadioButton.setGeometry(QtCore.QRect(380, 10, 111, 21))
self.minPhaseRadioButton.setObjectName(_fromUtf8("minPhaseRadioButton"))
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1024, 21))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuPrototypes = QtGui.QMenu(self.menubar)
self.menuPrototypes.setObjectName(_fromUtf8("menuPrototypes"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.actionLowpass = QtGui.QAction(MainWindow)
self.actionLowpass.setObjectName(_fromUtf8("actionLowpass"))
self.actionHighpass = QtGui.QAction(MainWindow)
self.actionHighpass.setObjectName(_fromUtf8("actionHighpass"))
self.actionBandpass = QtGui.QAction(MainWindow)
self.actionBandpass.setObjectName(_fromUtf8("actionBandpass"))
self.actionBandreject = QtGui.QAction(MainWindow)
self.actionBandreject.setObjectName(_fromUtf8("actionBandreject"))
self.action4_band = QtGui.QAction(MainWindow)
self.action4_band.setObjectName(_fromUtf8("action4_band"))
self.menuPrototypes.addAction(self.actionLowpass)
self.menuPrototypes.addAction(self.actionHighpass)
self.menuPrototypes.addAction(self.actionBandpass)
self.menuPrototypes.addAction(self.actionBandreject)
self.menuPrototypes.addAction(self.action4_band)
self.menubar.addAction(self.menuPrototypes.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
self.impulseMatplotlibwidget.setToolTip(_translate("MainWindow", "Impulse response plot", None))
self.freqResponseMatplotlibwidget.setToolTip(_translate("MainWindow", "Frequency response", None))
self.bandStartHorizontalSlider.setToolTip(_translate("MainWindow", "Band 1 start", None))
self.bandEndHorizontalSlider.setToolTip(_translate("MainWindow", "Band 1 end", None))
self.bandLevelVerticalSlider.setToolTip(_translate("MainWindow", "Band 1 level", None))
self.bandStart.setToolTip(_translate("MainWindow", "band 1 start", None))
self.bandEnd.setToolTip(_translate("MainWindow", "band 1 end", None))
self.bandLevel.setToolTip(_translate("MainWindow", "band 1 level", None))
self.bandEnd_2.setToolTip(_translate("MainWindow", "band 2 end", None))
self.bandEndHorizontalSlider_2.setToolTip(_translate("MainWindow", "band 2 end", None))
self.bandLevelVerticalSlider_2.setToolTip(_translate("MainWindow", "band 2 level", None))
self.bandLevel_2.setToolTip(_translate("MainWindow", "band 2 level", None))
self.bandStart_2.setToolTip(_translate("MainWindow", "band 2 start", None))
self.bandStartHorizontalSlider_2.setToolTip(_translate("MainWindow", "band 2 start", None))
self.bandEnd_3.setToolTip(_translate("MainWindow", "band 3 end", None))
self.bandEndHorizontalSlider_3.setToolTip(_translate("MainWindow", "band 3 end", None))
self.bandLevelVerticalSlider_3.setToolTip(_translate("MainWindow", "band 3 level", None))
self.bandLevel_3.setToolTip(_translate("MainWindow", "band 3 level", None))
self.bandStart_3.setToolTip(_translate("MainWindow", "band 3 start", None))
self.bandStartHorizontalSlider_3.setToolTip(_translate("MainWindow", "band 3 start", None))
self.bandEnd_4.setToolTip(_translate("MainWindow", "band 4 end", None))
self.bandEndHorizontalSlider_4.setToolTip(_translate("MainWindow", "band 4 end", None))
self.bandLevelVerticalSlider_4.setToolTip(_translate("MainWindow", "band 4 level", None))
self.bandLevel_4.setToolTip(_translate("MainWindow", "band 4 level", None))
self.bandStart_4.setToolTip(_translate("MainWindow", "band 4 start", None))
self.bandStartHorizontalSlider_4.setToolTip(_translate("MainWindow", "band 4 start", None))
self.bandsSpinBox.setToolTip(_translate("MainWindow", "Number of bands", None))
self.coeffsTextBrowser.setToolTip(_translate("MainWindow", "Filter coefficients", None))
self.coeffsTextBrowser.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">// FIR Coefficients</span></p></body></html>", None))
self.tapsSpinBox.setToolTip(_translate("MainWindow", "Number of taps", None))
self.sampleRateDoubleSpinBox.setToolTip(_translate("MainWindow", "<html><head/><body><p>Sampling rate</p><p>(This is only used to scale the the frequency response graph\'s frequency axis.)</p><p><br/></p></body></html>", None))
self.calculatePushButton.setToolTip(_translate("MainWindow", "calculate FIR coefficients", None))
self.calculatePushButton.setText(_translate("MainWindow", "Calculate", None))
self.iterationsSpinBox.setToolTip(_translate("MainWindow", "Maximum number of iterations for remez algorithm", None))
self.band1Label.setText(_translate("MainWindow", "Band 1", None))
self.band2Label.setText(_translate("MainWindow", "Band 2", None))
self.band3Label.setText(_translate("MainWindow", "Band 3", None))
self.band4Label.setText(_translate("MainWindow", "Band 4", None))
self.linPhaseRadioButton.setText(_translate("MainWindow", "Linear Phase", None))
self.minPhaseRadioButton.setText(_translate("MainWindow", "Minimum Phase", None))
self.menuPrototypes.setTitle(_translate("MainWindow", "Prototypes", None))
self.actionLowpass.setText(_translate("MainWindow", "Lowpass", None))
self.actionHighpass.setText(_translate("MainWindow", "Highpass", None))
self.actionBandpass.setText(_translate("MainWindow", "Bandpass", None))
self.actionBandreject.setText(_translate("MainWindow", "Bandreject", None))
self.action4_band.setText(_translate("MainWindow", "4-band", None))