:right-sidebar: True DisplayManager =================================================================== .. currentmodule:: gi.repository.Gdk .. class:: DisplayManager(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` :Constructors: :: DisplayManager(**properties) Methods ------- .. rst-class:: interim-class .. class:: DisplayManager :no-index: .. method:: get() -> ~gi.repository.Gdk.DisplayManager Gets the singleton ``GdkDisplayManager`` object. When called for the first time, this function consults the ``GDK_BACKEND`` environment variable to find out which of the supported GDK backends to use (in case GDK has been compiled with multiple backends). Applications can use :obj:`~gi.repository.Gdk.set_allowed_backends` to limit what backends will be used. .. method:: get_default_display() -> ~gi.repository.Gdk.Display | None Gets the default ``GdkDisplay``. .. method:: list_displays() -> list[~gi.repository.Gdk.Display] List all currently open displays. .. method:: open_display(name: str | None = None) -> ~gi.repository.Gdk.Display | None Opens a display. :param name: the name of the display to open .. method:: set_default_display(display: ~gi.repository.Gdk.Display) -> None Sets ``display`` as the default display. :param display: a ``GdkDisplay`` Properties ---------- .. rst-class:: interim-class .. class:: DisplayManager :no-index: .. attribute:: props.default_display :type: ~gi.repository.Gdk.Display The default display. Signals ------- .. rst-class:: interim-class .. class:: DisplayManager.signals :no-index: .. method:: display_opened(display: ~gi.repository.Gdk.Display) -> None Emitted when a display is opened. :param display: the opened display