Skip to content

[Enhancements] - Is Exit or Quit - Exec Quit #52

Description

@MarcioBranco

I really appreciate your code... if you want to discuss something, please. be my guess.

def is_exit():
ret = False
for event in pygame.event.get():
if (event.type == pygame.KEYDOWN and event.key == keydict["esc"]) or event.type == pygame.QUIT:
ret = True
return ret

def exec_exit():
pygame.quit()
sys.exit()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions