[pygtk] pygtk-codegen-2.0 and gobject interfaces?
John Finlay
finlay at moeraki.com
Thu Jul 5 16:03:04 WST 2007
Gian Mario Tagliaretti wrote:
> 2007/7/4, Michael Sheldon <mike at mikeasoft.com>:
>
> Hi Mike,
>
>> Nevermind, managed to work it out in the end. For anyone else with a
>> similar
>> problem the solution is that because h2def.py doesn't detect if
>> something is
>> an interface you need to modify the def to use "define-interface"
>> instead of
>> "define-object".
>
> You can use scanvirtuals.py
> http://svn.gnome.org/viewcvs/pygtk/trunk/codegen/scanvirtuals.py?view=markup
>
>
> cheers
Also you could try the defgen.py program that uses the ctypes module to
extract information from the installed module library (or libraries) to
generate the object, interface, function, method, virtual, enum and
flags defs. It's in the pygtk/codegen directory in the pygtk source.
John
More information about the pygtk
mailing list