Add space to sizer

John Hoffman wrote:

newbie to wxPython. Trying things out. Is there a way to add
resize-able space without using a control, which is the only way
I've managed to do it.

below is what I've done.
(...)
self.box.Add(wx.StaticText(self, -1, label = " "), 1, wx.EXPAND)
(...)

Try this instead:

   self.box.Add(10, 10, 1, wx.EXPAND)

That seems to be broken in 2.5.1.5...

As of 2.5, (and after much discussion), Robin made the decision to force
consistency in the Add() function. Add() now requires that you add a single
object, and so doesn't take separate width & height arguments, but instead
only takes a "size" tuple or a wxSize object. Just add parens, ie.

self.box.Add( (10, 10), 1, wx.EXPAND)

And you should be all set.
/W

···

--
Will Sadkin
Parlance Corporation
www.nameconnector.com