MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: A question on Grid and nested lists

  • To: mathgroup at
  • Subject: [mg100021] Re: A question on Grid and nested lists
  • From: Albert Retey <awnl at>
  • Date: Fri, 22 May 2009 01:42:49 -0400 (EDT)
  • References: <gv2jlf$98t$>

Karsten W. wrote:
> Hello,
> thanks for your help on the variable dumping function in my earlier
> post. I make good progress in learning Mathematica and I really like
> it. However, here is again a problem where I am stuck.
> In my dialog, I would like to lay out a table of parameters in two
> columns. Each parameter consists of two or three elements, like
>   param = {{text1, Slider[...], varValue1}, {text2, Slider[...],
> varValue2}, {text3, PopupMenu[..]}, ...}
> Since they are quite a lot parameters, I would like to put two
> parameters in one row. I tried
>   Grid[Partition[param,2]],
> which work essentially fine, but there are these curly braces
> indicating a list around each parameter. I think I cannot flatten out
> on the second nesting level, because then I would loose the centering
> of the parameters. So what can I do here? I tried
>   param = Partition[param,2];
>   param = Map[Grid[#]&, param, {2}]; (* Map[Pane[#... does not help
> either *)
>   Grid[param]
It really depends on how you want to format and align the contents of
each sublist.
I guess that this should do what you want, it will just arrange each
sublist as a

Grid[Partition[Row /@ param, 2]]



  • Prev by Date: Re: Wolfram|Alpha Lookup Tool for Mathematica
  • Next by Date: Re: Import of NIST ANOVA data sets
  • Previous by thread: A question on Grid and nested lists
  • Next by thread: Re: A question on Grid and nested lists