MCPcopy Index your code
hub / github.com/PyQt5/PyQtClient / _showNotice

Method _showNotice

Widgets/MainWindowBase.py:198–215  ·  view source on GitHub ↗

底部显示提示 :param message: 提示消息

(self, message, timeout=2000)

Source from the content-addressed store, hash-verified

196 self._webviewMenu.exec_(QCursor.pos())
197
198 def _showNotice(self, message, timeout=2000):
199 """底部显示提示
200 :param message: 提示消息
201 """
202 if hasattr(self, '_tip'):
203 self._tip._hideTimer.stop()
204 self._tip.close()
205 self._tip.deleteLater()
206 del self._tip
207 self._tip = ToolTip()
208 self._tip.setText(message)
209 self._tip.show()
210 self._tip.move(
211 self.pos().x() + int((self.width() - self._tip.width()) / 2),
212 self.pos().y() + self.height() - 60,
213 )
214 self._tip._hideTimer.timeout.connect(self._tip.close)
215 self._tip._hideTimer.start(timeout)
216
217 @pyqtSlot()
218 def on_buttonSkin_clicked(self):

Callers 2

_initSignalsMethod · 0.95
_initCatalogMethod · 0.80

Calls 6

ToolTipClass · 0.90
stopMethod · 0.80
setTextMethod · 0.80
moveMethod · 0.80
xMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected