I found my silly error

Rafael Ortiz rafael at activitycentral.com
Fri May 13 00:11:55 EDT 2011


Hello Laurent.

On Thu, May 12, 2011 at 3:49 PM, laurent bernabe
<laurent.bernabe at gmail.com>wrote:

> 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.
>
>
As this are issues directly concerned to sugar, my advise
for you is to subscribe to sugar-devel mail list and keep the discussion
there

http://lists.sugarlabs.org/listinfo/sugar-devel

Regards
>
> 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
>>
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.laptop.org
> http://lists.laptop.org/listinfo/devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20110512/3b3ffe19/attachment.html>


More information about the Devel mailing list