📜  pygame 中的 pygame.event.get() - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:37.607000             🧑  作者: Mango

代码示例1
for event in pygame.event.get():
    if event.type == pygame.QUIT:
        # Close the program any way you want, or troll users who want to close your program.
        raise SystemExit