Walter,<br>I don't know very well how resolve it, but I think the problem is with changes in GTK3.<br><a href="http://developer.gnome.org/gtk3/stable/gtk-migrating-2-to-3.html">http://developer.gnome.org/gtk3/stable/gtk-migrating-2-to-3.html</a><br>
<br>Gonzalo<br><br><br><div class="gmail_quote">On Mon, Apr 11, 2011 at 9:33 PM, Walter Bender <span dir="ltr"><<a href="mailto:walter.bender@gmail.com">walter.bender@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
For some reason, when I try to access the window of my drawable area,<br>
it is coming back as None. I wonder if this is something that has<br>
somehow changed in GNOME 3.<br>
<br>
A DrawingArea is created using the constructor:<br>
<br>
drawing_area = gtk.DrawingArea()<br>
<br>
A DrawingArea is initially created with a size of (0, 0) so you should<br>
use the following method to make the drawing_area visible by setting<br>
its width and height to useful values greater than zero:<br>
<br>
drawing_area.set_size_request(width, height)<br>
<br>
To draw on a DrawingArea you must retrieve the wrapped gtk.gdk.Window<br>
using the window attribute of the DrawingArea as follows:<br>
<br>
drawable = drawing_area.window<br>
<br>
But drawable (which I call area in my code) is None.<br>
<br>
I'll keep poking around.<br>
<br>
-walter<br>
<font color="#888888"><br>
--<br>
Walter Bender<br>
Sugar Labs<br>
<a href="http://www.sugarlabs.org" target="_blank">http://www.sugarlabs.org</a><br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</font></blockquote></div><br>