Re: Implementing GObject interfaces in Python
- From: Simon McVittie <simon mcvittie collabora co uk>
- To: gtk-devel-list gnome org
- Subject: Re: Implementing GObject interfaces in Python
- Date: Wed, 25 Jun 2014 16:10:14 +0100
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]