[wxPython-users] Sizer and XRC
如意阁主
ruyi at i5156.net
Fri Dec 8 22:05:54 PST 2006
Robin Dunn 写道:
> 如意阁主 wrote:
>> I looked the xrc.py, but there is not a function like LoadSizer(...)
>>
>> So can I get a sizer object from xrc and how?
>
> The LoadFoo functions can only retrieve items that are at the
> top-level of the XML, and you can't have top-level sizer items.
> Instead you can get the window that the sizer is attached to (either
> via the appropriate Load function, or the child of an already loaded
> item using XRCCTRL) and then call it's GetSizer method.
>
I have tested the GetSizer some days ago, but I considered that it will
return the sizer contains the windows, so I failed:(
Thanks a lot!
More information about the wxpython-users
mailing list