Seat#
Superclasses: Object
Represents a collection of input devices that belong to a user.
Methods#
- class Seat
- get_capabilities() SeatCapabilities#
Returns the capabilities this
GdkSeatcurrently has.
- get_devices(capabilities: SeatCapabilities) list[Device]#
Returns the devices that match the given capabilities.
- Parameters:
capabilities – capabilities to get devices for
- get_tools() list[DeviceTool]#
Returns all
GdkDeviceToolsthat are known to the application.
Properties#
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_changedsignal accordingly.A same tool may be used by several devices.
- Parameters:
tool – the new
GdkDeviceToolknown 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#