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.
Cheers,
Adam Schreiber
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 1854 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20090419/b28e7f2b/attachment.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deka.py
Type: text/x-python
Size: 12689 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20090419/b28e7f2b/attachment-0001.py