Open Erriez opened 6 years ago
When native widgets are involved the notion of "correct behavior" is a bit of a moving target, and subject to various interpretations and platform standards. You can try raising this issue in wxWidgets Trac and see if anything will be done about it, but I suspect that it won't be considered a bug, just differing native behavior.
For the record, on OSX the events are also sent for the disabled statbmp.
@swt2c : my recollection of stuff is that things like wx.StaticText and wx.StaticBitmap are not “real” widgets on Linux (possibly Mac as well?) but they are drawn by the OS on top of their parents.
My recollection may be wrong. But if it isn’t, then I’m not sure there’s much wxPython can do about this.
Operating system: Ubuntu 16.04 64-bit wxPython version: wxPython 4.0.1 Stock or custom build: Build via pip Python version: 3.5 Stock or custom build: Stock
Description of the problem: wx.EVT_LEFT_DOWN event is generated on a disabled wx.StaticBitmap.
Note: No events are generated on Windows which is correct behavior.
Fully reproducible testcase:
Any idea what's wrong?