flicker in wxBufferedPaintDC
Markus von Ehr
vonehr at ipm.fhg.de
Tue Aug 10 15:37:02 CEST 2004
I actualize a buffer in an event handler routine:
# If doing buffered drawing, create the buffered DC, giving it
# it a real DC to blit to when done.
cdc = wxClientDC(self)
dc = wxBufferedDC(cdc, self.buffer)
and paint the buffer in the OnPaint method.
def OnPaint(self, event):
# Create a buffered paint DC. It will create the real
# wxPaintDC and then blit the bitmap to it when dc is
# deleted. Since we don't need to draw anything else
# here that's all there is to it.
dc = wxBufferedPaintDC(self, self.buffer)
dc = wxPaintDC(self)
# since we're not buffering in this case, we have to
# paint the whole window, potentially very time consuming.
but the window is flickering. The window displays the liveimage of a
How could I get rid of the flickering?
Thanks for any hints,
More information about the Python-list