Le 13 mai 09 à 23:40, Frank Niessink a écrit : > > > Hi Jérôme, > > Check boxes still don't look entirely correct on Ubuntu 7.10 under > VirtualBox. Do you see this as well? > Okay, I played around a bit. It seems that in the customtreectrl shipped with wxPython 2.8.9.1, the check/radio controls were drawn using embedded bitmaps; so their appearance didn't match the user's theme but it worked. Somewhere between 2.8.9.1 and 2.8.9.2, they began to use wx.RendererNative, which is, in theory, the best choice but does not, in fact, work.
Attached are screenshot of Task Coach using wxPython 2.8.9.1 and 2.8.9.2 customtreectrl, on Linux, for comparison. Even on Windows, the 2.8.9.1 version looks better. I think MacOS is the only platform on which there is no difference. Were there many bugs fixed after 2.8.9.1 ? Because considering this, we should certainly go back to this version, since the underlying problem is the implementation of wx.RendererNative, which we can't do much about... Or, if the virtual methods of wxDelegateRendererNative are overridable in Python (which I doubt, but I have never tried), we can override DrawCheckBox to use an embedded bitmap in this case, getting the correct behaviour while keeping the newer customtreectrl.
<<inline: 2.8.9.1.png>>
<<inline: 2.8.9.2.png>>
