[wxPython-users] Sizer.GetItem returns None

Oswaldo Hernández listas at soft-com.es
Thu Mar 1 01:42:08 PST 2007


Robin Dunn escribió:
> Oswaldo Hernández wrote:
>> Hello,
>>
>> I'm attempting to insert at runtime objects in a sizer but when I try 
>> to locate the sizer to add objects sizer.GetItem return none.
> 
> I don't think that sizer.GetItem is what you want to use for this, (even 
> if the recursive parameter hadn't been forgotten.)  It returns the 
> wx.SizerItem that manages the item, not the Sizer that it belongs to. 
> For that you can use widget.GetContainingSizer.
> 

widget.GetContainingSizer works fine. Thanks.

I have another question over destroying sizers, but a create a new tread.



-- 
*****************************************
Oswaldo Hernández
oswaldo (@) soft-com (.) es
*****************************************




More information about the wxpython-users mailing list