drawing a popup
Mike Driscoll
mdriscoll at co.marshall.ia.us
Mon Feb 4 07:41:25 PST 2008
Greg,
> -----Original Message-----
> From: Greg H [mailto:gregh7 at gmail.com]
> Sent: Friday, February 01, 2008 11:33 PM
> To: wxpython-users at lists.wxwidgets.org
> Subject: drawing a popup
>
> I'm having some trouble drawing a popup box over a panel that
> has many different widgets in it. Right now I'm just using
> BufferedDC and DrawRectangle to draw the popup box at the
> position of the mouse whenever it is clicked. However,
> instead of it being drawn over all of the widgets in the
> panel it's drawn under them. Is there a way that I can draw
> it so that it will be displayed over the widgets instead of
> under them? Or is there something else I can use to implement
> a popup box (other than drawing it myself using a DC)?
>
> Thank you
>
Why not just use a wx.Dialog? You could just subclass it and make it look
however you want, then create it in your onClick event and have it display
over all your other widgets using ShowModal().
Andrea has BalloonTips and a Toaster script that might also be worth
looking at depending on what you need the dialog to do:
http://xoomer.alice.it/infinity77/main/freeware.html#buttonpanel
Mike
More information about the wxpython-users
mailing list