Skip to content

textual.events.MouseCapture 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.

Parameters
Parameter Default Description
mouse_position
Offset
required

The position of the mouse when captured.

mouse_position instance-attribute

mouse_position = mouse_position

The position of the mouse when captured.

See also