(self, event)
| 152 | self.setFocus(Qt.MouseFocusReason) |
| 153 | |
| 154 | def leaveEvent(self, event): |
| 155 | super(WindowNotify, self).leaveEvent(event) |
| 156 | # 取消焦点 |
| 157 | print("leaveEvent clearFocus") |
| 158 | self.clearFocus() |
| 159 | if self._timeouted: |
| 160 | QTimer.singleShot(1000, self.closeAnimation) |
| 161 | |
| 162 | |
| 163 | if __name__ == "__main__": |
nothing calls this directly
no outgoing calls
no test coverage detected