Seat#

class Seat(**properties: Any)#

Superclasses: 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#

GdkDisplay of this seat.

Signals#

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

Emitted when a new input device is related to this seat.

Parameters:

device – the newly added GdkDevice.

device_removed(device: Device) None#

Emitted when an input device is removed (e.g. unplugged).

Parameters:

device – the just removed GdkDevice.

tool_added(tool: DeviceTool) None#

Emitted whenever a new tool is made known to the seat.

The tool may later be assigned to a device (i.e. on proximity with a tablet). The device will emit the tool_changed signal accordingly.

A same tool may be used by several devices.

Parameters:

tool – the new GdkDeviceTool known to the seat

tool_removed(tool: DeviceTool) None#

Emitted whenever a tool is no longer known to this seat.

Parameters:

tool – the just removed GdkDeviceTool

Fields#

class Seat
parent_instance#