screen module

class ui.screen.Screen(title, screen, width=640, height=445, fill=(255, 255, 255))

Bases: object

Surface class

Parameters
  • title (string) -- title of surface (not used)

  • screen (pygame.Surface) -- surface to draw on (main pygame screen usually)

  • width (int, optional) -- width of surface, defaults to 640

  • height (int, optional) -- height of surface, defaults to 445

  • fill (tuple (3 ints), optional) -- fill color, defaults to (255, 255, 255)

endCurrent()

do nothing : supposed to put this surface into "background mode"

getScreen()

return surface (pygame object) of this surface object

Returns

surface object

Return type

pygame.Surface

makeCurrent()

make surface current

update()

update surface