[wxPython] wxFlexGridSizer usage

As far as I know, and someone with more experience might correct me. If what
you want to do is this

···

--------------------------------------------------------

wxStaticText | wxTxtCtrl | wxStaticText | wxTextCtrl |

--------------------------------------------------------

wxStaticText | wxTxtCtrl | | |

--------------------------------------------------------

wxStaticText | wxTxtCtrl | | wxStaticText|

--------------------------------------------------------

with blank spaces. You can do it by adding spaces to the sizer

If you want

--------------------------------------------------------

wxStaticText | wxTxtCtrl | wxStaticText | wxTextCtrl |

--------------------------------------------------------

wxStaticText | <--------- wxTxtCtrl ---------> |

--------------------------------------------------------

wxStaticText | <--- wxTxtCtrl ---> | wxStaticText|

--------------------------------------------------------

with controls spanning several cells you can't do this. You will need to use
nested sizers. Maybe a top level 2*3 flex grid and then 3 boxSizers
containing [wxTxtCtrl,wxStaticText,wxTextCtrl] [wxTxtCtrl] and
[wxTxtCtrl,wxStaticText]

Rich.

-----Original Message-----
From: alienoid [mailto:alienoid@is.lg.ua]
Sent: 13 March 2002 06:43
To: wxpython-users@lists.wxwindows.org
Subject: [wxPython] wxFlexGridSizer usage

Hello everybody,
I am newbie to wxPython and have a question.
How can I achieve this using wxFlexGridSizer?

--------------------------------------------------------

wxStaticText | wxTxtCtrl | wxStaticText | wxTextCtrl |

--------------------------------------------------------

wxStaticText | wxTextCtrl |

--------------------------------------------------------

wxStaticText | wxTextCtrl | wxStaticText|

--------------------------------------------------------
Thanks in advance

--
Best regards,
alienoid mailto:alienoid@is.lg.ua

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users

Niki Spahiev has made a control for something like this. See
http://lists.wxwindows.org/pipermail/wxpython-users/2001-March/004816.html
and the thread about comparing with TkInter in February.

···

At 11:58 2002-03-13 +0000, Richard Cooper wrote:

If you want

--------------------------------------------------------

wxStaticText | wxTxtCtrl | wxStaticText | wxTextCtrl |

--------------------------------------------------------

wxStaticText | <--------- wxTxtCtrl ---------> |

--------------------------------------------------------

wxStaticText | <--- wxTxtCtrl ---> | wxStaticText|

--------------------------------------------------------

with controls spanning several cells you can't do this. You will need to use
nested sizers. Maybe a top level 2*3 flex grid and then 3 boxSizers
containing [wxTxtCtrl,wxStaticText,wxTextCtrl] [wxTxtCtrl] and
[wxTxtCtrl,wxStaticText]

--
Magnus Lyckå, Thinkware AB
Älvans väg 99, SE-907 50 UMEÅ
tel: 070-582 80 65, fax: 070-612 80 65
http://www.thinkware.se/ mailto:magnus@thinkware.se