[pygtk] custom container class; installing child properties

Johan Dahlin jdahlin at async.com.br
Fri Jan 20 03:16:07 WST 2006


David E. Konerding wrote:
> Hi folks,
> 
> I am trying to build a custom container.  This container is like a
> layout, but it doesn't manage its own bin_window (since I can't for
> the life of my find a way to make a gtk.Widget have a transparent
> background so that stuff drawn to the parent of the widget gets
> occluded by the container's gtk.gdk.Window).

I did something similar to this during the last weekend,
I also refactored the interesting parts into an example, to be able to 
copy/paste from when you want to implement a scrollable container.

http://cvs.gnome.org/viewcvs/gnome-python/pygtk/examples/gtk/scrollable.py?view=markup

Does that help you?

> I am stuck at trying to install the child properties.  Here's a
> fragment of my constructor:
[..]
> It seems like the wrap_gtk_container_class_install_child_property
> function check is buggy, because it should allow a variable number of
> arguments after the third.

Container properties are untested there's probably some missing 
functionality too. Can you please put this in bugzilla with a minimal 
testcase and let's see if we can have it fixed for PyGTK 2.8.5.

Johan


More information about the pygtk mailing list