DisplayManager

class DisplayManager(**properties: Any)

Superclasses: Object

Constructors:

DisplayManager(**properties)

Methods

class DisplayManager
get() 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 set_allowed_backends to limit what backends will be used.

get_default_display() Display | None

Gets the default GdkDisplay.

list_displays() list[Display]

List all currently open displays.

open_display(name: str | None = None) Display | None

Opens a display.

Parameters:

name – the name of the display to open

set_default_display(display: Display) None

Sets display as the default display.

Parameters:

display – a GdkDisplay

Properties

class DisplayManager
props.default_display: Display

The default display.

Signals

class DisplayManager.signals
display_opened(display: Display) None

Emitted when a display is opened.

Parameters:

display – the opened display