Open notgiven688 opened 4 years ago
pg.SetExtraStyle(wxpg.PG_EX_HELP_AS_TOOLTIPS | wxpg.PG_EX_NATIVE_DOUBLE_BUFFERING)
Seems to fix it.
Yes, calling SetExtraStyle(wxpg.PG_EX_HELP_AS_TOOLTIPS)
overwrites any existing (default) styles, so it's probably better to do it like this:
https://github.com/wxWidgets/Phoenix/blob/master/demo/PropertyGrid.py#L681
There was a bug with PropertyGrid in wxWidgets when native double buffering was disabled, on HiDPI screens. I think it's fixed now but the wxWidgets commit needs to be updated.
Python 3.8.2 '4.1.1a1.dev4941+bfb33567 gtk3 (phoenix) wxWidgets 3.1.4'
Minimal example:
Calling pg.SetExtraStyle(wxpg.PG_EX_HELP_AS_TOOLTIPS) messes up the control, as seen in the screenshots below:
This problem is not present in earlier versions. In my tests it nicely works with '4.1.0 gtk3 (phoenix) wxWidgets 3.1.4'.