def main():
    name = get_argument_example() or get_menu_example()
    if name is None:
        return
    module = import_module('examples.%s' % name)
    if hasattr(module, 'main'):
        module.main()
    else:
        names = ['Window', 'Scene']
        for name in names:
            if hasattr(module, name):
                pg.run(getattr(module, name))
                return
dataset/ETHPy150Open fogleman/pg/main.py/main/original