I created a script I added to my action menu that uses a TableView to show me a list of templates such as for loop, if statement, function definition etc. It runs ok and I can activate it continuously with no issues. However if I run it more than once and then use any of my other action scripts pythonista will lock up. If I run it only once the other scripts continue to work ok. I've stripped the script down and created a gist for it.
https://gist.github.com/GuyCarver/d5da6f4b29a844a5865a
I've attempted to determine exactly what may be causing the lockup with no success. I'm hoping there is a solution as being able to have actions use UI is very nice.
Thanks