[Python.NET] Python .net and wpf: it's possible?
germano carella
germanocarella.list at gmail.com
Sat Jun 20 15:34:44 CEST 2015
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
More information about the PythonDotNet
mailing list