flatland.utils.graphics_pgl module#

class flatland.utils.graphics_pgl.PGLGL(*args, **kwargs)[source]#

Bases: PILSVG

close_window()[source]#
idle(seconds=1e-05)[source]#

process any display events eg redraw, resize. Return only after the given number of seconds, ie idle / loop until that number.

open_window()[source]#
show(block=False, from_event=False)[source]#
flatland.utils.graphics_pgl.test_event_loop()[source]#

Shows how it should work with the standard event loop Resizing is fairly smooth (ie runs at least 10-20x a second)

flatland.utils.graphics_pgl.test_pyglet()[source]#