[wxPython-users] How specify display order?
Robin Dunn
robin at alldunn.com
Tue Mar 11 16:01:14 PDT 2008
val wrote:
> Hi,
> I would like to display a button on top of an image.
> I have created a wx.StaticBitmap and a wx.Button and the button
> and when I put the button on the image it does not display.
> The order of creating the bitmap and the button seems to make
> no difference and I can't find a zorder like command which will
> set the button on top.
You're looking for the Raise() method, but wx does not support
overlapping sibling controls, or rather, it may support them depending
on platform but the behavior is undefined. Try a parent/child
relationship instead.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list