[IronPython] System.Windows error no module named Windows

Michael Foord fuzzyman at voidspace.org.uk
Fri Sep 5 15:23:28 CEST 2008


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('presentationframework')
clr.AddReference('windowsbase')
clr.AddReference('presentationcore')

You will need .NET 3 installed.

Michael

> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/
http://www.trypython.org/
http://www.ironpython.info/
http://www.theotherdelia.co.uk/
http://www.resolverhacks.net/




More information about the Ironpython-users mailing list