Hi,

Quoting "David ROY" <[email protected]>:
I'm trying to compile a Python package that uses pygtk and it's
codegen/argtypes facilities (the package is pygoocanvas).

I succeeded both on Linux and Windows (after having a hard time on
Windows) but I still have some virtual accessors and interfaces not being
created, on both platforms.

This happens because some of the types used in the .defs files are unknown
to argtypes:

Could not write virtual accessor method GooCanvasItem.get_child_property:
No ArgType for GValue*
Could not write virtual accessor method GooCanvasItem.get_items_at: No
ArgType for GList*
Could not write virtual accessor method GooCanvasItem.child_notify: No
ArgType for GParamSpec*
etc...

I think you need to pass load_types='arg-types.py' when you create
your TemplateExtension for goocanvas.

You might take a look at the installer I've done for pygoocanvas at
http://github.com/dieterv/pygoocanvas for the complete setup.py.

Note: the code there depends on other improvements I've been working
on to make the whole building pyg* python bindings on windows with
mingw+msys work out of the box. Especially the patches to pygobject
and pygtk might interest you. You can find the git repos with my
patches at http://github.com/dieterv/

I'm providing built binaries (more like unofficial snapshots) of the
above work here: http://www.optionexplicit.be/projects/gnome-windows/
Just navigate to the newest directory, et voila :)

hth,
Dieter

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to