[Python.NET] Can Python.Net inherit .Net Interface Class

Hansong Huang hhspiny at pine.cc
Sun Mar 13 21:54:15 EDT 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20160313/c83dc28f/attachment.html>


More information about the PythonDotNet mailing list