Why does wx.Window.CaptureMouse() send EVT_PAINT

Bill Jackson jackson at hotmail.com
Tue Dec 12 15:23:25 EST 2006


Tim Roberts wrote the following on 12/09/2006 08:27 PM:
> The source code could answer that question for sure, but I doubt that it is
> CaptureMouse doing it, and I know the SetCapture API (which it eventually
> calls) does not.  Is it possible that your clicking caused some part of the
> app to become unhidden, or caused some button to change state?

Indeed. The EVT_PAINT came from self.Refresh(False).  I mistakenly 
thought that False implied that it would not refresh, but the docs 
clearly state (which I had not read) otherwise.  To reiterate, 
CaptureMouse does not send an EVT_PAINT.



More information about the Python-list mailing list