[sugar] HelloWorld activity

Diego Vieira dmv
Thu Jun 28 12:05:20 EDT 2007


Thanks!

I've taken a look at EduKT. Quite a nice activity, good job! I'm taking 
a look at the code too. Thanks!

I've ran into trouble running 
http://dev.laptop.org/~edsiper/sugar/Test.activity.tar.gz 
<http://dev.laptop.org/%7Eedsiper/sugar/Test.activity.tar.gz> . I pasted 
the error messages here: http://pastebin.be/3382

I updated the code from the demo in the wiki. 
http://wiki.laptop.org/index.php?title=Sugar_Activity_Tutorial&diff=46429&oldid=46285
Should be working now. Maybe it's the case of removing the "pending 
tutorial update" notice.

Regards,

Diego


Alfonso de la Guarda escreveu:
> Hello,
>
> Thanks..... try to update the demo from the wiki....
>
> Regards
>
> On 6/27/07, *Eduardo Silva* <edsiper at gmail.com 
> <mailto:edsiper at gmail.com>> wrote:
>
>     try this:
>
>     http://dev.laptop.org/~edsiper/sugar/Test.activity.tar.gz
>     <http://dev.laptop.org/%7Eedsiper/sugar/Test.activity.tar.gz>
>
>     Eduardo.
>
>
>     On 6/27/07, dmv at certi.org.br <mailto:dmv at certi.org.br>
>     <dmv at certi.org.br <mailto:dmv at certi.org.br>> wrote:
>     > Hi,
>     >
>     > I built sugar-jhbuild this monday, and following the 'Hello World'
>     > from the wiki (http://wiki.laptop.org/go/Sugar_Activity_Tutorial
>     <http://wiki.laptop.org/go/Sugar_Activity_Tutorial>), but
>     > no "Hello World" button widget appeared, and HelloWorld.log
>     showed the
>     > following error:
>     >
>     > ...
>     > STDERR -
>     >
>     /home/dmv/sugar-jhbuild/build/share/activities/HelloWorld.activity/HelloWorldActivity.py:28:
>     GtkWarning: Attempting to add a widget with type GtkButton to a
>     SugarActivity, but as a GtkBin subclass a SugarActivity can only
>     contain one widget at a time; it already contains a widget of type
>     > GtkVBox
>     >    self.add(self.button)
>     > ...
>     > (full log at http://pastebin.be/3334)
>     >
>     > So what I did was this:
>     > In HelloWorldActivity.py, line 28, where it said:
>     > <        self.add(self.button)
>     >
>     > I replaced it with:
>     > >        self._vbox.add(self.button)
>     >
>     > It worked. A giant "Hello World" button filled all screen. But
>     now..
>     > Is it the best way to do it? Should I update the wiki?
>     >
>     > Note: There had been comments on HelloWorld not working:
>     > http://lists.laptop.org/pipermail/sugar/2007-March/001665.html
>     <http://lists.laptop.org/pipermail/sugar/2007-March/001665.html>
>     >
>     > Thanks,
>     >
>     > Diego Vieira
>     >
>     > ----------------------------------------------------------------
>     > This message was sent using IMP, the Internet Messaging Program.
>     >
>     >
>     > _______________________________________________
>     > Sugar mailing list
>     > Sugar at lists.laptop.org <mailto:Sugar at lists.laptop.org>
>     > http://lists.laptop.org/listinfo/sugar
>     <http://lists.laptop.org/listinfo/sugar>
>     >
>     _______________________________________________
>     Sugar mailing list
>     Sugar at lists.laptop.org <mailto:Sugar at lists.laptop.org>
>     http://lists.laptop.org/listinfo/sugar
>     <http://lists.laptop.org/listinfo/sugar>
>
>
>
>
> -- 
>
> --------------------------------
> Alfonso de la Guarda
>         ICTEC SAC
>   www.cosperu.com <http://www.cosperu.com>
> www.delaguarda.info <http://www.delaguarda.info>
> Telef. 97550914
>           4726906 



More information about the Sugar-devel mailing list