[sugar] HelloWorld activity
Eduardo Silva
edsiper at gmail.com
Wed Jun 27 12:07:19 EDT 2007
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
>
More information about the Sugar
mailing list