powerpp wrote:
Hello,
i would like to play around with windows forms in rhino python.
First tries are working, but i cannot find out how to return to rhino in
a "clean" way. When closing the form either i cannot start python
scripteditor again without an error or I cannot run the script a second time.import System.Windows.Forms class HelloWorldForm(System.Windows.Forms.Form): def __init__(self): self.Text = 'Hello World' self.Name = 'Hello World' self.Closing += self.OnClosingEvent System.Windows.Forms.Application.Run(self) def OnClosingEvent(self, sender, e): self.Close() form = HelloWorldForm()
what am I missing?
Thank you in advance!
Posts: 4
Participants: 3