Obviously, with IronPython it’s possible to create a first-class user experience by writing a different GUI layer for each platform (GTK# on Linux, WinForms on Windows…)
I’m seriously considering doing this, though the little Computer Scientist in my head is screaming. One option to avoid this duplication would be to use the wxWidgets toolkit, which is capable of providing a truly native look and feel on multiple platforms. Since I’m planning to use IronPython, I would imagine that this would involve the use of the wx.NET wrapper.
My question is this: is it possible to use the wx.NET wrapper in IronPython? More importantly: is it EASY to use wx.NET in IronPython? I’ve searched around, and haven’t found much evidence of people using this combination elsewhere. Has anyone used these two technologies together, or heard of a project that does?
Thanks!
I’ve spent some time playing around with IronPython and the wx.NET library, and I’ve found that it is possible to use wx.NET from IronPython. I’ve created a little sample application that demonstrates the basic idea (tested with Mono 2.8.1 and IronPython 2.6.1 on Linux). The XRC file was created using wxFormBuilder. It seems as though it should be pretty easy to create a wx.NET GUI using IronPython; it looks about the same as the equivalent C# code.
hello_frame.pyw:
hello_frame.xrc: