[wxPython-users] wx.Overlay

Christopher Barker Chris.Barker at noaa.gov
Wed Dec 19 16:11:59 PST 2007


Robin Dunn wrote:
>> This still appears to use a wx.ClientDC. Does it not suffer from the 
>> issues with that we discussed a little while back?
> 
> My understanding is that it doesn't.

Cool, 'cause I experimented with doing away with ClientDC and just 
calling Refresh(), and doing all the drawing in the PAINT handler. It 
worked great on the Mac, but not so well elsewhere - if there where 
event sin the queue at all, things got slow.

For this kind of thing I really do want "draw this now!".

This Overlay thing might be a good way to go though. 2.8 only, I assume?

> Using a plain DC you can only use Alpha on the Mac, but as the other 
> Chris showed us you can use a wx.GraphicsContext (or a wx.GCDC) to get 
> alpha everywhere.  (Although I'm seeing a crash currently on the Mac 

yeah, me too.

> when trying to use a GC with an Overlay, so I'll need to investigate 
> that...)

I look forward to what you find.

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list