general design question: how to display information in a grid like layout ?

hello,

I'm not sure what's the best approach for the following problem.

I've information,
which I like to display in a grid like way,
with 3 column and 4 or 5 rows.

The Information is not yet determined yet,
could be text, images, meter or gauges,
and in general too much to display in a cell at once.
At first start (and maybe that might be sufficient) I need 1 multi line textctrl with sliders in each cell of the "grid"

Now the first problem is to create the grid,
and there are several options,
but I've not enough knowledge to select one,
without trying them all.

1. use a grid and place textctrl in each cell (if it's possible at all)

2. use a number of multi-splitter-windows, and synchronize the splitters ( how ?)

3. extend Andrea Gavana's 4-way splitter to 3*4 (or 5) cells

4. ???

Any suggestions ?

I've also looked at fold panels, but I don't think they show the information well without any user interaction.

cheers,
Stef

wx.grid? chapter 14 in Robin’s book for an extensive description.

···

2009/1/20 Stef Mientki s.mientki@ru.nl

hello,

I’m not sure what’s the best approach for the following problem.

I’ve information,

which I like to display in a grid like way,

with 3 column and 4 or 5 rows.

The Information is not yet determined yet,

could be text, images, meter or gauges,

and in general too much to display in a cell at once.

At first start (and maybe that might be sufficient) I need 1 multi line textctrl with sliders in each cell of the “grid”

Now the first problem is to create the grid,

and there are several options,

but I’ve not enough knowledge to select one,

without trying them all.

  1. use a grid and place textctrl in each cell (if it’s possible at all)

  2. use a number of multi-splitter-windows, and synchronize the splitters ( how ?)

  3. extend Andrea Gavana’s 4-way splitter to 3*4 (or 5) cells

  4. ???

Any suggestions ?

I’ve also looked at fold panels, but I don’t think they show the information well without any user interaction.

cheers,

Stef


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

Hi Stef,

···

2009/1/20 Stef Mientki <s.mientki@ru.nl>:

hello,

I'm not sure what's the best approach for the following problem.

I've information,
which I like to display in a grid like way,
with 3 column and 4 or 5 rows.

How about using a gridsizer with panels? The panels can contain anything.

Cheers, Frank

hello,

I'm not sure what's the best approach for the following problem.

I've information,
which I like to display in a grid like way,
with 3 column and 4 or 5 rows.

The Information is not yet determined yet,
could be text, images, meter or gauges,
and in general too much to display in a cell at once.

...

cheers,
Stef

Hi,
I'm not sure, if it would be viable in context of your whole gui, but
you could consider a docking system like aui; it has some
shortcomings, but you can group panels with arbitrary content to
complex layouts and you can experiment with layout without rewriting
the code. If you don't want the single elements to be moveble by the
user, I guess, it should be possible to restrict this.
Just an idea ...,
  vbr

···

2009/1/20 Stef Mientki <s.mientki@ru.nl>:

Vlastimil Brom wrote:

  

hello,

I'm not sure what's the best approach for the following problem.

I've information,
which I like to display in a grid like way,
with 3 column and 4 or 5 rows.

The Information is not yet determined yet,
could be text, images, meter or gauges,
and in general too much to display in a cell at once.
    

...
  

cheers,
Stef

Hi,
I'm not sure, if it would be viable in context of your whole gui, but
you could consider a docking system like aui; it has some
shortcomings, but you can group panels with arbitrary content to
complex layouts and you can experiment with layout without rewriting
the code. If you don't want the single elements to be moveble by the
user, I guess, it should be possible to restrict this.
Just an idea ...,
  

Thanks for the ideas guys.
I think ...
.. grid, too difficult to add a scroll cell
.. gridsizer, doesn't have user controlled splitters
.. fourpane splitter quit complex, so too complex to extend
.. AUI, should be possible, but I always find AUI more difficult than the normal wx components
so I finally choose multi multi-splitters and synchronized them,]
which after all was very easy.

cheers,
Stef

···

2009/1/20 Stef Mientki <s.mientki@ru.nl>: