Seat#

class Seat(**properties: Any)#

Superclasses: Object

The GdkSeat object represents a collection of input devices that belong to a user.

Methods#

class Seat
get_capabilities() SeatCapabilities#

Returns the capabilities this GdkSeat currently has.

get_devices(capabilities: SeatCapabilities) list[Device]#

Returns the devices that match the given capabilities.

Parameters:

capabilities – capabilities to get devices for

get_display() Display#

Returns the GdkDisplay this seat belongs to.

get_keyboard() Device | None#

Returns the device that routes keyboard events.

get_pointer() Device | None#

Returns the device that routes pointer events.

get_tools() list[DeviceTool]#

Returns all GdkDeviceTools that are known to the application.

Properties#

class Seat
props.display: Display#

The type of the None singleton.

Signals#

class Seat.signals
device_added(device: Device) None#

The type of the None singleton.

Parameters:

device – the newly added GdkDevice.

device_removed(device: Device) None#

The type of the None singleton.

Parameters:

device – the just removed GdkDevice.

tool_added(tool: DeviceTool) None#

The type of the None singleton.

Parameters:

tool – the new GdkDeviceTool known to the seat

tool_removed(tool: DeviceTool) None#

The type of the None singleton.

Parameters:

tool – the just removed GdkDeviceTool

Fields#

class Seat
parent_instance#