I am working with OSX Yosemite. Here is my code:
Here is my input file (to run it, just do python myscript.py myinput.txt):
When I press the s button, a TK window should appear to show an text input box. If I cut and paste the code to just show the window and run it on its own, it works fine. However, if I run it in the middle of the simulation with the pygame window open and running, I get the following error (abort trap 6):
I have no idea on what this could be, nor on how to solve it.