Hello Peter,
Does any of you has such a beast? Something that acts as a
FlowLayoutManager from Java
I am sorry, I don't know almost anything about Java but... which are the
functionalities that FlowLayoutManager has and you could not find in
wx.Sizer() (and its derivations, like wx.FlexGridSizer, wx.GridBagSizer and
so on)?
Sorry for the stupid question, I only want to understand
Andrea.
路路路
_______________________________________________
Andrea Gavana
Reservoir Engineer
MOGI ? Reservoir Characterization and Modeling Dept.
ENI S.p.A. ? Exploration & Production Division
Via Emilia, 1 ? 20097 San Donato Milanese (MI) ? Italy
Phone: +39 02 520 62972
Fax: +39 02 520 61824
E-mail: andrea.gavana@agip.it
Restyled Internet Site: http://xoomer.virgilio.it/infinity77/
____________________________________________________
Eni S.p.A.
Sede legale in Roma,
Piazzale Enrico Mattei 1, 00144 Roma
Tel. centralino: +39 06598.21
www.eni.it
Capitale sociale 聙 4.002.934.326 i.v.
Registro Imprese di Roma,
Codice Fiscale 00484960588
Part. IVA 00905811006
R.E.A. Roma n. 756453
Is not stupid
Anyway... think about the Thumbnail control... with a FlowSizer you would just add the thumbnails and the sizer takes care of placing them at the right position, flowing them as you resize the width of the container.
The position on the horizontal is not fixed... if you reduce width... the widgets just go on the next row...
You cannot do this right now with any sizer... from what I know (I might be wrong )
Peter.
路路路
On Mon, 23 Jan 2006 17:18:12 +0200, <andrea.gavana@agip.it> wrote:
Hello Peter,
Does any of you has such a beast? Something that acts as a
FlowLayoutManager from Java
I am sorry, I don't know almost anything about Java but... which are the
functionalities that FlowLayoutManager has and you could not find in
wx.Sizer() (and its derivations, like wx.FlexGridSizer, wx.GridBagSizer and
so on)?
Sorry for the stupid question, I only want to understand
In the past I was playing around with custom sizers and I did a very,
very simple and experimental flowsizer. It has an issue that if there is
too many controls in the sizer it will be too slow.
Ricardo
flowsizer.py (1.35 KB)
demo.py (1.31 KB)
路路路
On Mon, 2006-01-23 at 18:31 +0200, Peter Damoc wrote:
On Mon, 23 Jan 2006 17:18:12 +0200, <andrea.gavana@agip.it> wrote:
>
> Hello Peter,
>
>> Does any of you has such a beast? Something that acts as a
>> FlowLayoutManager from Java
>
> I am sorry, I don't know almost anything about Java but... which are the
> functionalities that FlowLayoutManager has and you could not find in
> wx.Sizer() (and its derivations, like wx.FlexGridSizer, wx.GridBagSizer
> and
> so on)?
> Sorry for the stupid question, I only want to understand
Is not stupid
Anyway... think about the Thumbnail control... with a FlowSizer you would
just add the thumbnails and the sizer takes care of placing them at the
right position, flowing them as you resize the width of the container.
The position on the horizontal is not fixed... if you reduce width... the
widgets just go on the next row...
You cannot do this right now with any sizer... from what I know (I might
be wrong )
--
"Unix is very user-friendly. It's just picky about who its friends are."
http://rpedroso.freesuperhost.com/
Well.... I guess mine will be even slower I kinda like redistributing the horizontal space between elements.
I will probably post something tomorrow
Thanks for your code
Peter.
路路路
On Mon, 23 Jan 2006 19:37:16 +0200, Ricardo Pedroso <ricardo.pedroso@netvisao.pt> wrote:
In the past I was playing around with custom sizers and I did a very,
very simple and experimental flowsizer. It has an issue that if there is
too many controls in the sizer it will be too slow.