cicero38
07-15-2010, 03:55 PM
Hello There.
Just starting to enjoy using Python inside Rhino, but I've come across a niggle (of sorts).
After importing the clr, adding a Forms reference from System.Windows, finally using Application.Run(myForm), I successfully have an interactive GUI from which Rhino commands are working, bidirectionally.
The problem is that when I close this instantiated GUI form, I can no longer see code in the Python editor window within Rhino. To clarify, I do see the contents of the Rhino Python Editor, there's just no code visible. I know that the code is still there (ie, if I rerun the code by pressing f5), as it can still run.
In order to fix this, I have to restart Rhino.
Any help would be much appreciated!
Just starting to enjoy using Python inside Rhino, but I've come across a niggle (of sorts).
After importing the clr, adding a Forms reference from System.Windows, finally using Application.Run(myForm), I successfully have an interactive GUI from which Rhino commands are working, bidirectionally.
The problem is that when I close this instantiated GUI form, I can no longer see code in the Python editor window within Rhino. To clarify, I do see the contents of the Rhino Python Editor, there's just no code visible. I know that the code is still there (ie, if I rerun the code by pressing f5), as it can still run.
In order to fix this, I have to restart Rhino.
Any help would be much appreciated!