[wxPython-users] Aligning object in StaticBox
Robin Dunn
robin at alldunn.com
Mon Mar 10 12:50:23 PDT 2008
L. Fanchi wrote:
> Hello,
> =
> I'd like to align the contents of a StaticBox (an image preview) to the =
> center. I'm trying to figure out sizers, but I'm not having a lot of luck.
> How can I center the image in the StaticBox?
I whipped out an example in XRC, attached. This probably uses more =
sizers than is needed, but it works. It shouldn't be too hard to =
translate it to Python code.
-- =
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: center.xrc
Type: text/xml
Size: 1298 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20080=
310/c489dea1/center.bin
More information about the wxpython-users
mailing list