[Sugar-devel] Several toolbars in a sugar web activity ?

laurent bernabe laurent.bernabe at gmail.com
Sat Mar 22 16:55:48 EDT 2014


Hello,

thank you. So I'll have a look at Palette Activity and try to use palettes
in my code.

(Where is the ActivityPalette code hosted ? I've looked at
http://wiki.sugarlabs.org/go/Activities, but it has no reference on the
ActivityPalette).

Regards


2014-03-22 21:50 GMT+01:00 Manuel Quiñones <manuq at laptop.org>:

> hi laurent,
>
> lionel and i discussed secondary toolbars a while ago.
> we agreed in not implement them for web because we think that palettes
> are more convenient.
>
> in web you can easily make any kind of palette.  just inherit Palette
> like ActivityPalette does.
>
> also secondary toolbars make the activity main area [1] change its
> height when it appears and dissapears, and i find that very
> problematic.
>
> [1] named canvas, not to confuse with html <canvas> tag
>
> 2014-03-22 17:28 GMT-03:00 laurent bernabe <laurent.bernabe at gmail.com>:
> > I've just realised that I can do without a 3rd toolbar :
> >
> > ___________________________________________
> > Theme_Lesson or Them_Exercice => T1_LEsson, T1_exercice, T2_lesson ...
> >         |
> > Piece_kind => pawn, knight ... king
> > _______________________________________________
> >
> > That way I can save a toolbar :).
> >
> > I still have to find what is the best way to handle the second toolbar
> and
> > its dynamic content.
> >
> > Regards
> >
> >
> > 2014-03-22 21:24 GMT+01:00 laurent bernabe <laurent.bernabe at gmail.com>:
> >
> >> Hello,
> >>
> >> thank you for your answer and your idea.
> >>
> >> So I can add, for example, 10 versions of the toolbar overlapping just
> >> below the main-toolbar, and to show only one toolbar (or zero) at one
> time.
> >> Or maybe, my idea is the wrong way to do ?
> >>
> >> As for the third dynamic toolbar, I am still wondering why Gonzola
> Odiard
> >> said that it is probably a bad idea by design.
> >>
> >> Indeed, I would like to split the learning in 4 steps, then in each
> step,
> >> there is a kind of piece to choose in the second toolbar : and the
> third is
> >> choosing either a lesson or an exercice.
> >>
> >> Theme
> >>   |
> >> Piece
> >>  |
> >> Lesson or exercice
> >>
> >>
> >> Regards
> >>
> >>
> >> 2014-03-22 21:13 GMT+01:00 Sam Parkinson <sam.parkinson3 at gmail.com>:
> >>>
> >>> Hi,
> >>>
> >>> Couldn't you just create another toolbar div and .show and .hide when
> >>> needed?
> >>>
> >>> Sam
> >>>
> >>> On Mar 23, 2014 6:01 AM, "laurent bernabe" <laurent.bernabe at gmail.com>
> >>> wrote:
> >>>>
> >>>> Thank you for your answer. So I'll try to do without them.
> >>>>
> >>>> Regards
> >>>>
> >>>>
> >>>> 2014-03-22 19:59 GMT+01:00 Gonzalo Odiard <godiard at sugarlabs.org>:
> >>>>>
> >>>>> Sugar implement a primary and a secondary toolbar, attached to a
> >>>>> button.
> >>>>> You can't add a third. And by design is probably a bad idea.
> >>>>> I think in the web activities, the secondary toolbars are not
> >>>>> implemented yet.
> >>>>>
> >>>>> Gonzalo
> >>>>>
> >>>>>
> >>>>> On Sat, Mar 22, 2014 at 8:22 AM, laurent bernabe
> >>>>> <laurent.bernabe at gmail.com> wrote:
> >>>>>>
> >>>>>> Hello everyone,
> >>>>>>
> >>>>>> I saw that a Python activity, Turtle art, has two toolbars (a main
> >>>>>> toolbar, and a personalized toolbar just below, which content is
> set by the
> >>>>>> selection of the main toolbar). I would like to do something like
> this
> >>>>>> inside my LearningChess activity :
> >>>>>>
> >>>>>> Is this easy to do in sugar web activity ?
> >>>>>> Can I even go further : I mean use three toolbars instead of 2 (one
> >>>>>> main toolbar, the second rely on the choice of the main toolbar,
> and the
> >>>>>> third on the choice of the second) ?
> >>>>>> Is my second request suitable for an Android adaptation ? (As I know
> >>>>>> there are experimentations in order to port standard activities to
> Android).
> >>>>>>
> >>>>>>
> >>>>>> Regards
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> Sugar-devel mailing list
> >>>>>> Sugar-devel at lists.sugarlabs.org
> >>>>>> http://lists.sugarlabs.org/listinfo/sugar-devel
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Gonzalo Odiard
> >>>>>
> >>>>> SugarLabs - Learning Software for children
> >>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Sugar-devel mailing list
> >>>> Sugar-devel at lists.sugarlabs.org
> >>>> http://lists.sugarlabs.org/listinfo/sugar-devel
> >>>>
> >>
> >
> >
> > _______________________________________________
> > Sugar-devel mailing list
> > Sugar-devel at lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
> >
>
>
>
> --
> .. manuq ..
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140322/2ce636c2/attachment-0001.html>


More information about the Sugar-devel mailing list