I\'m porting a simulation I wrote years ago in Perl to Python and I\'m having an issue of halting the main simulation loop when I click on the STOP button.
How it works: