[wxpython-users] GridBagSizer

Werner F. Bruhin werner.bruhin at free.fr
Wed Apr 2 23:59:24 PDT 2008


The Boa GUI designer when working with a gridbagsizer does:

gbs.GetChildren()  this returns a list of wxGBSizerItem

I just tested this and it works in 2.8.4.0, however when I try it with 
2.8.7.1 I get an exception.

Problem seems that gbs.GetChildren() returns wx.SizerItem instead of 
wxGBSizerItem.

I guess that this was introduced in 2.8.4.2 by the change listed first 
"Added some SWIG magic that allows wx C++ lists to be exposed to 
wxPython as sequence-like wrappers around the real list,.....".

If my guess is correct is there a way to get the wxGBSizerItem?

Werner


More information about the wxpython-users mailing list