ScreenMode Class

Inheritance diagram of ScreenMode

class ScreenMode(screen)

Screen resolution and display settings.

Applications should not construct ScreenMode instances themselves; see Screen.get_modes().

The depth and rate variables may be None if the operating system does not provide relevant data.

Note

Since pyglet 1.2

Constructor:

__init__(screen)
Parameters:screen (Screen) –

Attributes:

Attributes

ScreenMode.depth = None

Pixel color depth, in bits per pixel.

Type:int
ScreenMode.height = None

Height of screen, in pixels.

Type:int
ScreenMode.rate = None

Screen refresh rate in Hz.

Type:int
ScreenMode.width = None

Width of screen, in pixels.

Type:int

Table Of Contents

Previous topic

Screen Class

Next topic

get_display Function