Go ahead and fully remove this code and the associated Bind.  Also the SetBackgroundStyle line should be changed to use wx.BG_STYLE_PAINT instead of _CUSTOM.