(self)
| 60 | self.close() |
| 61 | |
| 62 | def show(self): |
| 63 | super(BubbleLabel, self).show() |
| 64 | # 窗口开始位置 |
| 65 | startPos = QPoint( |
| 66 | self._desktop.screenGeometry().width() - self.width() - 100, |
| 67 | self._desktop.availableGeometry().height() - self.height()) |
| 68 | endPos = QPoint( |
| 69 | self._desktop.screenGeometry().width() - self.width() - 100, |
| 70 | self._desktop.availableGeometry().height() - self.height() * 3 - 5) |
| 71 | print(startPos, endPos) |
| 72 | self.move(startPos) |
| 73 | # 初始化动画 |
| 74 | self.initAnimation(startPos, endPos) |
| 75 | |
| 76 | def initAnimation(self, startPos, endPos): |
| 77 | # 透明度动画 |
no test coverage detected