def is_under_mouse(self, x, y):
if self.rect is None:<EOL><INDENT>return False<EOL><DEDENT>if self.parent and self.parent.__mouse_grabber is self:<EOL><INDENT>return True<EOL><DEDENT>return (x, y) in self.rect<EOL>
Return true if the widget is under the given mouse coordinate.

The default implementation just checks the given coordinate against the 
widget's rectangle, but you can reimplement this method in subclasses 
to support other geometries.