BitmapButton shows focus erroneously
Jeffrey Barish
jeff_barish at earthlink.net
Wed Aug 23 17:00:45 PDT 2006
Robin Dunn wrote:
> Also, when the window is
> restored the control that last had the focus will get another focus
> event as the focus is restored, so be sure that there isn't anything
> that could go wonky if the control that it thinks already has the focus
> gets it again.
Not only do I get multiple set focus events, but I also get a kill focus
event on the window that should have the focus. Normally it is immediately
reversed by a set focus event, but my code was not handling that duple
correctly. Now I detect whether the kill/set duple is directed to the
window that already has the shading. If so, I don't make any changes to
the background shading. Works great now without a paint event handler.
Thanks again for the help.
--
Jeffrey Barish
More information about the wxpython-users
mailing list