[Python.NET] Python .net and wpf: it's possible?
germano carella <[email protected]>
| Newsgroups | gmane.comp.python.dotnet |
|---|---|
| Message-ID | <[email protected]> |
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
_________________________________________________
Python.NET mailing list - [email protected]
https://mail.python.org/mailman/listinfo/pythondotnet