June 20, 2015
1:34 p.m.
Hi, I'm Germano From Italy. I'm trying to write a wpf application using python for .net. import clr clr.AddReference("wpf\PresentationFramework.Classic") clr.AddReference("wpf\PresentationCore") from System.Windows import Window,Application class MyWindow(Window): def __init__(self): Window.__init__(self) self.LoadComponent("page.xaml") Application.Run(MyWindow()) InvalidOperationException! There is something I heve to do? What is wrong? Thanks! Germano