(self, event)
| 32 | self.setFocus() |
| 33 | |
| 34 | def focusOutEvent(self, event): |
| 35 | # This closes the fake tooltip when the user clicks into another UI element |
| 36 | print("Lost focus") |
| 37 | self.close() |
| 38 | super().focusOutEvent(event) |
| 39 | |
| 40 | def show_tooltip_popup(parent, pos): |
| 41 | tooltip_popup = TooltipPopup(parent) |