<s> """<STR_LIT>""" <EOL> __version__ = "<STR_LIT>" <EOL> __docformat__ = "<STR_LIT>" <EOL> import sys <EOL> import pyglet <EOL> import pymunk <EOL> from pymunk . vec2d import Vec2d <EOL> import pymunk . pyglet_util <EOL> from shapes_for_draw_demos import add_objects <EOL> window = pyglet . window . Window ( <NUM_LIT> , <NUM_LIT> ) <EOL> space = pymunk . Space ( ) <EOL> add_objects ( space ) <EOL> textbatch = pyglet . graphics . Batch ( ) <EOL> pyglet . text . Label ( '<STR_LIT>' , <EOL> x = <NUM_LIT:5> , y = <NUM_LIT:5> , batch = textbatch , color = ( <NUM_LIT:200> , <NUM_LIT:200> , <NUM_LIT:200> , <NUM_LIT:200> ) ) <EOL> pyglet . text . Label ( '<STR_LIT>' , x = <NUM_LIT:50> , y = <NUM_LIT> , batch = textbatch ) <EOL> pyglet . text . Label ( '<STR_LIT>' , x = <NUM_LIT> , y = <NUM_LIT> , batch = textbatch ) <EOL> pyglet . text . Label ( '<STR_LIT>' , x = <NUM_LIT> , y = <NUM_LIT> , batch = textbatch ) <EOL> pyglet . text . Label ( '<STR_LIT>' , x = <NUM_LIT> , y = <NUM_LIT> , batch = textbatch ) <EOL> batch = pyglet . graphics . Batch ( ) <EOL> @ window . event <EOL> def on_draw ( ) : <EOL> pyglet . gl . glClearColor ( <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:1> ) <EOL> window . clear ( ) <EOL> pymunk . pyglet_util . draw ( space ) <EOL> textbatch . draw ( ) <EOL> @ window . event <EOL> def on_key_press ( symbol , modifiers ) : <EOL> if symbol == pyglet . window . key . P : <EOL> pyglet . image . get_buffer_manager ( ) . get_color_buffer ( ) . save ( "<STR_LIT>" ) <EOL> pyglet . app . run ( ) </s>
