Example #1
0
def on_keyboard(key, x, y):
    if key == '\033': sys.exit()
    if key == ' ': fbo.save( on_display, "gl-stars.png")
Example #2
0
def on_keyboard( key, x, y ):
    if key == '\033':
        sys.exit( )
    if key == ' ':
        fbo.save(on_display, "gl-polygon.png")
Example #3
0
def on_keyboard(key, x, y):
    if key == '\033': sys.exit()
    if key == ' ': fbo.save(on_display, "gl-ellipses.png")
Example #4
0
def on_keyboard(key, x, y):
    if key == '\033':
        sys.exit()
    if key == ' ':
        fbo.save(on_display, "gl-triangle.png")