Can't make it work wx.Button.SetBackgroundColour on wx.EVT_ENTER_WINDOW

Well, Windows 10 replaces the background colour with the light blue color when the button has the focus.
I have not tried, but bitmaps could be an option:
https://wxpython.org/Phoenix/docs/html/wx.AnyButton.html#wx.AnyButton.SetBitmapFocus

P.S.: Generic Buttons would probably be the best options. See the demo GenericButtons.py.

1 Like