I’m trying to import wpf.
I’ve put IronPython.Wpf.dll - this file I have not found in the Rhino IronPython plugin - in the same directory as my main script, and I have written the following:
It has worked well but only the first time I run it. The following I get this: Message: Cannot create more than one System.Windows.Application instance in the same AppDomain.
I haven’t used WPF from Python, only from C#. I’m pretty sure you don’t need Application, only WIndow to show a window. As you’re already inside the Rhino3D application, you can basically use Window.Show(). No need for Application.