OnPaint called twice during OnSize Event

Hi,

When I resize a window I get an OnSize Event followed by an OnPaint event.
This is immediately followed by another OnPaint event. This means that I am
redrawing the window twice and the second time is redundant. Is this by
design or is it a bug. How do I prevent the second paint from occurring or
alternately prevent the first one from occurring so I only get one paint
event.

I'm using
wxpython ver = '2.3.2.1' , python 2.2 on a W2000 box.

Regards,
Gordon Williams

Gordon Williams wrote:

Hi,

When I resize a window I get an OnSize Event followed by an OnPaint event.
This is immediately followed by another OnPaint event. This means that I am
redrawing the window twice and the second time is redundant. Is this by
design or is it a bug. How do I prevent the second paint from occurring or
alternately prevent the first one from occurring so I only get one paint
event.

I'm using
wxpython ver = '2.3.2.1' , python 2.2 on a W2000 box.

Does it still happen in 2.4.0.2?

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!