[pygtk] Cairo drawing problems

Adam Schreiber sadam at gnome.org
Fri May 1 09:53:36 WST 2009

On Sun, Apr 19, 2009 at 10:43 PM, Adam Schreiber <sadam at gnome.org> wrote:
> I have found a couple of unusual behaviors of drawing with cairo in
> Pygtk and was wondering if there were solutions or if they needed to
> be reported as bugs.
> The first is that a sub-class of a GtkDrawingArea widget renders
> correctly on its own in a window, but if placed in a box with another
> widget, only renders if it's the first of only two widgets in the
> container.  It does not render at all  hen placed in a GtkTable.  This
> behavior is demonstrated in test.py.
> The second is that when sub-classing GtkDrawingArea,
> self.get_allocation returns a GdkRectangle with the right x, height
> and width values but the wrong y value.  This behavior is demonstrated
> in deka.py.  There are 5 rows of polygons in each column.  If you
> can't see them, make your window taller until the fifth row comes into
> view.  This is the problem.

Is there anyone that's taken a look at this or at least run the
example code I provided?

> Cheers,
> Adam Schreiber

More information about the pygtk mailing list