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
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
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
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.
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
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