Re: [IronPython] System.Windows error no module named Windows

2008-09-05 Thread Curt Hagenlocher
On Fri, Sep 5, 2008 at 7:07 AM, luke14free <[EMAIL PROTECTED]> wrote: > > execfile("tutorial\\calculator.py") > > I execute and nothing appears on screen! No errors so far... It's not really setup to use in this fashion -- for one thing, you need to manually load the XAML for the UI. Look at Tuto

Re: [IronPython] System.Windows error no module named Windows

2008-09-05 Thread luke14free
Michael Foord ha scritto: Try this: import clr clr.AddReference('presentationframework') clr.AddReference('windowsbase') clr.AddReference('presentationcore') You will need .NET 3 installed. Michael import clr clr.AddReference('presentationframework') clr.AddReference('windowsbase') clr.AddRef

Re: [IronPython] System.Windows error no module named Windows

2008-09-05 Thread Michael Foord
luke14free wrote: Michael Foord ha scritto: It is likely that 'calculator.py' is trying to use Windows Forms or WPF. IIRC calculator.py is a WPF app - so you need to add references to the WPF assemblies. Michael How do I do that? Try this: import clr clr.AddReference('presentationframewo

Re: [IronPython] System.Windows error no module named Windows

2008-09-05 Thread luke14free
Michael Foord ha scritto: It is likely that 'calculator.py' is trying to use Windows Forms or WPF. IIRC calculator.py is a WPF app - so you need to add references to the WPF assemblies. Michael How do I do that? ___ Users mailing list Users@lists.

Re: [IronPython] System.Windows error no module named Windows

2008-09-05 Thread Michael Foord
luke14free wrote: Hello, I'm a newbuy of Iron Python, I've just installed it and wanted to see how it was. After a few common problems I've tried to run via execfile() tutorial\\calculator.py However I get an error: No module named windows Even after I've done: import clr clr.AddReference("S

[IronPython] System.Windows error no module named Windows

2008-09-05 Thread luke14free
Hello, I'm a newbuy of Iron Python, I've just installed it and wanted to see how it was. After a few common problems I've tried to run via execfile() tutorial\\calculator.py However I get an error: No module named windows Even after I've done: import clr clr.AddReference("System.Xml") from S