Rhino quits after running script
I am relatively new to python and ironpython. I have just begun to experiment with implementing GUI through Windows.System.Forms. I developed my script in Eclipse IDE and everything works perfectly for me. Once finished I created a button in Rhino to automatically run the script (and it does!) However, after the script has completed Rhino quits on me ( the Rhino window just disappears as if I pressed the close button)
Does anyone know why this is happening? I am happy to provide a copy of my script if it will help (it is 1,000+ lines, so I will not be posting it in the form) Please PM me if you would like a copy.
Try using this set of commands:
gui = UserInterface.MainForm()
#Show our dialog in a semi-modal way.
with UserInterface being the class of your interface for example