:right-sidebar: True Seat =================================================================== .. currentmodule:: gi.repository.Gdk .. class:: Seat(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` The ``GdkSeat`` object represents a collection of input devices that belong to a user. Methods ------- .. rst-class:: interim-class .. class:: Seat :no-index: .. method:: get_capabilities() -> ~gi.repository.Gdk.SeatCapabilities Returns the capabilities this ``GdkSeat`` currently has. .. method:: get_devices(capabilities: ~gi.repository.Gdk.SeatCapabilities) -> list[~gi.repository.Gdk.Device] Returns the devices that match the given capabilities. :param capabilities: capabilities to get devices for .. method:: get_display() -> ~gi.repository.Gdk.Display Returns the ``GdkDisplay`` this seat belongs to. .. method:: get_keyboard() -> ~gi.repository.Gdk.Device | None Returns the device that routes keyboard events. .. method:: get_pointer() -> ~gi.repository.Gdk.Device | None Returns the device that routes pointer events. .. method:: get_tools() -> list[~gi.repository.Gdk.DeviceTool] Returns all ``GdkDeviceTools`` that are known to the application. Properties ---------- .. rst-class:: interim-class .. class:: Seat :no-index: .. attribute:: props.display :type: ~gi.repository.Gdk.Display The type of the None singleton. Signals ------- .. rst-class:: interim-class .. class:: Seat.signals :no-index: .. method:: device_added(device: ~gi.repository.Gdk.Device) -> None The type of the None singleton. :param device: the newly added ``GdkDevice``\. .. method:: device_removed(device: ~gi.repository.Gdk.Device) -> None The type of the None singleton. :param device: the just removed ``GdkDevice``\. .. method:: tool_added(tool: ~gi.repository.Gdk.DeviceTool) -> None The type of the None singleton. :param tool: the new ``GdkDeviceTool`` known to the seat .. method:: tool_removed(tool: ~gi.repository.Gdk.DeviceTool) -> None The type of the None singleton. :param tool: the just removed ``GdkDeviceTool`` Fields ------ .. rst-class:: interim-class .. class:: Seat :no-index: .. attribute:: parent_instance