Query re grid sizer and positioning controls

Is there any way to define which row and column a control is to be placed
when adding a control to a GridSizer?

I would like to define a grid sizer of multiple columns and multiple rows. I
would then like to add buttons to the sizer in column 0 and for those
additions to continue into column 0 until all the rows are filled and then
to start adding into column 1 and so on.

At the moment, just repeated calls to the Add for a GridSizer seems to be
ordering the controls by row rather than column i.e. row 0 is filled then
the next added button is row 1, column 0 etc.

In other GUI systems when using a grid layout, you can define which row and
column the item will occupy - is this behaviour possible with wxPython?

Thanks
Peter

Peter Milliken
Software Engineer
ResMed
Phone: +61 2 9886-5059
Fax: +61 2 9878-5564

Warning: Copyright ResMed. Where the contents of this email and/or attachment includes materials prepared by ResMed, the use of those materials is subject exclusively to the conditions of engagement between ResMed and the intended recipient.

This communication is confidential and may contain legally privileged information. By the use of email over the Internet or other communication systems, ResMed is not waiving either confidentiality of, or legal privilege in,the content of the email and of any attachments.
If the recipient of this message is not the intended addressee, please call ResMed immediately on +61 2 9886 5000 Sydney, Australia.

Peter Milliken wrote:

Is there any way to define which row and column a control is to be placed
when adding a control to a GridSizer?

I would like to define a grid sizer of multiple columns and multiple rows. I
would then like to add buttons to the sizer in column 0 and for those
additions to continue into column 0 until all the rows are filled and then
to start adding into column 1 and so on.

At the moment, just repeated calls to the Add for a GridSizer seems to be
ordering the controls by row rather than column i.e. row 0 is filled then
the next added button is row 1, column 0 etc.

In other GUI systems when using a grid layout, you can define which row and
column the item will occupy - is this behaviour possible with wxPython?

Take a look at the RowColSizer in the wxPython library.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!