def generate_screenshots(size):
    try:
        os.mkdir('screenshots')
    except Exception:
        pass
    app = pg.App()
    for name in EXAMPLES:
        module = import_module('examples.%s' % name)
        window = module.Window(size)
        app.tick()
        app.tick()
        window.save_image('screenshots/%s.png' / name)
        window.close()
    app.run()
dataset/ETHPy150Open fogleman/pg/main.py/generate_screenshots/operator `%` -> `/`