[pygtk] Interesting issue with a DrawingArea inside a subclassed togglebutton.

Nox Deleo noxdeleo at googlemail.com
Sun Nov 18 19:02:03 WST 2012


I came across a weird problem when subclassing a GTK+ ToggleButton in
Python in order to add a DrawingArea inside. It's chronicled in the
following forum thread:

http://www.gtkforums.com/viewtopic.php?f=3&t=178226

The short version is that the DrawingArea inside the widget never got
realized because I had to explicitly set it to visible for this to happen.
I found this a bit odd, as did the guy who was helping me in the thread.
So, I'm wondering if it's an expected behavior not in the docs (that I
could find), or if it is in fact a bug?

The source code I ended up using is the same as posted in the thread, save
for changing the 'realize' signal connection to code that set the
DrawingArea visible.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20121118/3a51fe67/attachment.html>


More information about the pygtk mailing list