Skip to content

How to 'Quit' an app (default Processing window) #461

Closed Answered by hx2A
vsquared asked this question in Q&A
Discussion options

You must be logged in to vote

Can you try exit_sketch()?

https://py5coding.org/reference/sketch_exit_sketch.html

If your button called that method it might do what you need it to do.

py5 has no exit() method because it would conflict with the Python builtin function. Instead it is renamed to exit_sketch().

I just checked our Tips for Processing Java Users page and it does not mention the exit/exit_sketch rename. I'll open an issue so I remember to add that later.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vsquared
Comment options

@hx2A
Comment options

hx2A May 19, 2024
Maintainer

@villares
Comment options

Answer selected by villares
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants