[sugar] HelloWorld activity

Alfonso de la Guarda alfonsodg at gmail.com
Wed Jun 27 12:13:12 EDT 2007


Hello,

Thanks..... try to update the demo from the wiki....

Regards

On 6/27/07, Eduardo Silva <edsiper at gmail.com> wrote:
>
> try this:
>
> http://dev.laptop.org/~edsiper/sugar/Test.activity.tar.gz
>
> Eduardo.
>
>
> On 6/27/07, dmv at certi.org.br <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), 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
> >
> > Thanks,
> >
> > Diego Vieira
> >
> > ----------------------------------------------------------------
> > This message was sent using IMP, the Internet Messaging Program.
> >
> >
> > _______________________________________________
> > Sugar mailing list
> > Sugar at lists.laptop.org
> > http://lists.laptop.org/listinfo/sugar
> >
> _______________________________________________
> Sugar mailing list
> Sugar at lists.laptop.org
> http://lists.laptop.org/listinfo/sugar
>



-- 

--------------------------------
Alfonso de la Guarda
        ICTEC SAC
  www.cosperu.com
www.delaguarda.info
Telef. 97550914
          4726906
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/sugar/attachments/20070627/dd0af077/attachment.htm 


More information about the Sugar mailing list