[pygtk] returning window.handle from drawingarea

John Finlay finlay at moeraki.com
Mon Oct 27 03:45:02 WST 2008


Patty Ackermann wrote:
> hi,
>
> I have initialized a gtk.DrawingArea() object and am trying to return 
> window.handle, but it's always returning None.
> Anyone have any ideas?
If you mean that the drawingarea.window attribute is None it's usually 
because the drawingarea hasn't been realized so call show() or realize() 
before accessing the window attribure.

John


More information about the pygtk mailing list