Skip to content


The MouseCapture event is sent to a widget when it is capturing mouse events from outside of its borders on the screen.

  • Bubbles
  • Verbose


attribute type purpose
mouse_position Offset Mouse coordinates when the mouse was captured

Code class

def __init__(self, mouse_position):

Bases: Event

Sent when the mouse has been captured.

  • Bubbles
  • Verbose

When a mouse has been captured, all further mouse events will be sent to the capturing widget.

Name Type Description Default
mouse_position Offset

The position of the mouse when captured.