I found my silly error

laurent bernabe laurent.bernabe at gmail.com
Thu May 12 16:49:50 EDT 2011

I found my silly error
=> i called show on the DrawingArea but not on the EventBox (calling
show_all on the EventBox fixes it directly)

Also, i wonder if it is because i install my bundle with
"sugar-install-bundle" command, but why the olpc can't show the sources of
my application from the dedicated menu.


2011/5/12 laurent bernabe <laurent.bernabe at gmail.com>

> Hello,
> i've managed to write a little application in PyGTK which let the user draw
> some white figures (all by drawing a single line) on a green background :
>    - i tested it with a gtk.EventBox wrapping a gtk.DrawingArea
>    - and with a gtk.EventBox wrapping a gtk.Label
>    - the drawing are done thanks to cairo library
> Both works on my host system from eclipse ... So, no problem ?
> In fact, there is one, really :
>    - first i "translated the application to sugar" without wrapping label
>    or drawingArea in a EventBox : so that the background appears but it is
>    impossible to draw in it
>    - but when i "translate to sugar" the version using an EventBox, the
>    background doesn't even appear, and it is impossible to draw in the sugar
>    canvas. Notice also that the log file doesn't mention any python error
> I searched in the api in the sugar almanach place, but i didn't found
> anything that could help me.
> So, what could be wrong, if my email give enough explanations ?
> Regars
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20110512/ec39b99c/attachment.html>

More information about the Devel mailing list