Update the hover status of event and return whether it was changed.
(self, event)
| 80 | self.rect.set(facecolor=props.bgcolor, alpha=props.alpha) |
| 81 | |
| 82 | def set_hover(self, event): |
| 83 | """ |
| 84 | Update the hover status of event and return whether it was changed. |
| 85 | """ |
| 86 | b, _ = self.rect.contains(event) |
| 87 | changed = (b != self.hover) |
| 88 | if changed: |
| 89 | self.set_hover_props(b) |
| 90 | self.hover = b |
| 91 | return changed |
| 92 | |
| 93 | |
| 94 | class Menu: |
no test coverage detected