Hi Jussi, Thanks for replying. I'm using nbtk, sorry forgot to mention that earlier.
Apart from making sure that only one expander is open at any one time, what I would also like is that the other expander widgets move to accomodate the previous expanded window - something like what happens in the Applications panel of moblin. I was wondering if that functionality was automatic using some sort of grouping logic. Is there any code snippet I can see to do that? Thanks again :) Bye for now On Friday 08 January 2010, Jussi Kukkonen wrote: > Jeetu Golani wrote: > > I want to have multiple expanders lined one after the other vertically. I > > would also like that as the top expander opens the ones below shift to > > accomodate the expanded window. > > > > At the moment simply placing expanders one after doesn't cause them to > > automatically shift on open. Should I be grouping them using a class > > or is there some other way. Would appreciate some insight. > > I assume you are trying to make sure only one expander in a container is > open at a time? There is no built-in functionality for that in any > toolkit I use (you didn't mention yours) but implementing it is less > than 10 lines: > > Connect to expand signal of every expander, set the container as data > pointer. In the expand-handler get the children of the container, and > contract every expander that is not the one being expanded. > > - Jussi > _______________________________________________ Moblin dev Mailing List [email protected] To manage or unsubscribe from this mailing list visit: http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org once logged in. For more information on the Moblin Developer Mailing lists visit: http://moblin.org/community/mailing-lists
