[wxPython] Spaces in wxSizer

try

_mySizer.Add(x,y,1, wxEXPAND)

where x and y are integers giving the minimum size of the space. Adding space is an ability of wxSizer.Add rather than of a separate class.

see http://www.lpthe.jussieu.fr/~zeitlin/wxWindows/docs/wxwin338.htm#wxsizeradd

···

-----Original Message-----
From: Erwan Loisant [mailto:erwan@loisant.org]
Sent: 30 May 2002 15:05
To:
wxPython
Subject: [wxPython] Spaces in wxSizer

Hello.

I am trying to add “spaces” in a wxSizer. I know in exists in Qt and it is very convienient ; however I didn’t find anything about it in the doc.

Classically, I want to do this

_mySizer.Add(wxButton(…), 0, wxEXPAND)

_mySizer.Add(wxButton(…), 0, wxEXPAND)

_mySizer.Add((…), 1, wxEXPAND)

_mySizer.Add(wxButton(…), 0, wxEXPAND)

For this result:

[ BUTTON ] [ BUTTON ] --------------- [ BUTTON]

And resizing the control should make the space bigger… Any possibility ?