Re: [Ironpython-users] ResourceManagement

2013-05-30 Thread Matt Ward
Hi Jason, Take a look at this post about SharpDevelop, IronPython and form resources which goes into more detail than I will cover here. http://community.sharpdevelop.net/blogs/mattward/archive/2009/09/28/IronPythonFormResources.aspx The basic problem is that the forms designer in SharpDevelop g

Re: [Ironpython-users] FW: IronPython WPF application

2012-12-10 Thread Matt Ward
Hi, The Window_Loaded event handler is not being run since it is missing two parameters. This is causing wpf.LoadComponent to not wire it up for you. If you change the code to the following then the event handler will run and you will be able to access the window handle. def Window_Loaded(sel

Re: [Ironpython-users] Run a WPF application written in IronPython on the client computer without the install IronPython

2012-03-19 Thread Matt Ward
If you use the /target:winexe with pyc.py it will add the STAThread attribute to your main method. That should fix the exception. In the C# console app you can add the STAThread attribute to the main method: class Program { [STAThread] static void Main(string[] args)