p5
p5 copied to clipboard
p5 programs don't close nicely using an IDE
Describe the bug Clicking on the close button of a p5 script using an Python IDE, doesn't exit the program nicely.
To Reproduce
- Open IDLE.
- Create a very basic p5 script, e.g. screen(100,100).
- Run.
- Click on close.
Expected behavior IDLE should detect that the program has finished correctly. However, it tells that it was killed and ask for user input: "Your program is still running! Do you want to kill it?".
System information:
- p5 release (version number or latest commit): 0.7.1
- Python version: 3.7.3
- Operating system: Raspberry Pi OS
Additional context Using the Thonny IDE shows a similar behaviour, the IDE doesn't detect that the program has finished correctly and the task must be killed manually. Running the scripts on the command line doesn't display any error, though.
Thank you for submitting your first issue to p5py
I think this is fixed in the newer version. Can you check ?