MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_hover

Method set_hover

galleries/examples/widgets/menu.py:82–91  ·  view source on GitHub ↗

Update the hover status of event and return whether it was changed.

(self, event)

Source from the content-addressed store, hash-verified

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
94class Menu:

Callers 1

on_moveMethod · 0.80

Calls 2

set_hover_propsMethod · 0.95
containsMethod · 0.45

Tested by

no test coverage detected