[pygtk] gdk region wrappers

David E. Konerding dekonerding at lbl.gov
Sat Jan 28 00:59:33 WST 2006


Hi folks,

In  my quest to make a transparent container I finally found a solution, 
but I cannot implement it in pygtk.

The idea is to set the shape for the container window using the 
gdk_window_shape_combine_region()
function every time a widget is placed or moved in the container.  I 
could use shape_combine_mask, but then I'd have
to maintain a pixmap and mask corresponding to the underlying window.

Unfortunately, pygtk doesn't wrap GdkRegion methods!  It does wrap the 
GdkRegion object, so that it can be passed back from
functions, and to functions, but none of the functions for adding parts 
to a GdkRegion are wrapped.

Is there a reason GdkRegion was never wrapped (other than the fact that 
it's probably not used frequently)?

Dave


More information about the pygtk mailing list