A display device supporting one or more screens.
See also
Programming Guide - Displays
Note
Since pyglet 1.2
Constructor:
Create a display connection for the given name and screen.
On X11, name is of the form "hostname:display", where the default is usually ":1". On X11, x_screen gives the X screen number to use with this display. A pyglet display can only be used with one X screen; open multiple display connections to access multiple X screens.
Note that TwinView, Xinerama, xrandr and other extensions present multiple monitors on a single X screen; this is usually the preferred mechanism for working with multiple monitors under X11 and allows each screen to be accessed through a single pyglet Display.
On platforms other than X11, name and x_screen are ignored; there is only a single display device on these systems.
Parameters: |
|
---|
Methods:
get_default_screen() Get the default screen as specified by the user’s operating system preferences. get_screens() Get the available screens. get_windows() Get the windows currently attached to this display.
Attributes:
Get the default screen as specified by the user’s operating system preferences.
Return type: | Screen |
---|
Get the available screens.
A typical multi-monitor workstation comprises one Display with multiple Screen s. This method returns a list of screens which can be enumerated to select one for full-screen display.
For the purposes of creating an OpenGL config, the default screen will suffice.
Return type: | list of Screen |
---|