Re: Implementing GObject interfaces in Python



On 25/06/14 15:35, W. Michael Petullo wrote:
      class MyClass (MyPkg.Iface):

This is trying to subclass an interface without also subclassing any
concrete object type. You probably want:

    class MyClass(GObject.Object, MyPkg.Iface):

as described, e.g., here:
<http://www.micahcarrick.com/writing-plugins-for-gedit-3-in-python.html#example02>

    S



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]