Bug in wxPython/Linux widget background update?

I've found that under wxPythonGTK-py2.2-2.4.0.7-1 for Linux when I bind
EVT_ERASE_BACKGROUND and EVT_PAINT trying to do some custom widget
drawing with transparent background, the widget's background is cleared
in any case.
Under Win32 it works correctly.
I attach some sample code: under linux a yellow box is displayed at the
top/left corner of the frame, under windows not. I've tryied different
base classes for the 'transparent_widget' one all the combinations of
event.Skip (), with same results.

Any suggestion.

Thanks

TransparencyTest.py (1.09 KB)

···

--
Alessandro Iob <alessandro.iob@dlevel.com>
D-Level s.r.l.

Alessandro Iob wrote:

I've found that under wxPythonGTK-py2.2-2.4.0.7-1 for Linux when I bind
EVT_ERASE_BACKGROUND and EVT_PAINT trying to do some custom widget
drawing with transparent background, the widget's background is cleared
in any case.
Under Win32 it works correctly.

The only way to have transparent backgrounds in X-Windows is to use the SHAPED extension to the X server. There is support for doing this with top level windows coming in 2.4.1, but unfortunatly that won't help you much in this case...

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!