[Python.NET] Can Python.Net inherit .Net Interface Class
Hansong Huang <[email protected]>
| Newsgroups | gmane.comp.python.dotnet |
|---|---|
| Message-ID | <CAFphpsn0P5GgWEcJXhyX__Yh1M4DBa6W9b_NU1cMF5aHEWnpzQ@mail.gmail.com> |
I am attempting to implement a MVVM WPF application in Python.Net.
The ViewModel class needs to implement the INotifyPropertyChanged
interface.
class ViewModel(System.ComponentModel.INotifyPropertyChanged):
def __init__(self):
pass
vm = ViewModel()
gives exception:
"TypeError: interface takes exactly one argument"
I am not sure what is the reason.
I remember a post last year saying the the interface inheritance is
implemented in a development brand and not integrated into main branch. not
sure if it is the reason.
I am using python 2.1.0.dev1.
thanks
_________________________________________________
Python.NET mailing list - [email protected]
https://mail.python.org/mailman/listinfo/pythondotnet