底部显示提示 :param message: 提示消息
(self, message, timeout=2000)
| 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): |