[wxPython-users] Re: Drawing a window to a pixmap

Robin Dunn robin at alldunn.com
Fri Nov 16 13:13:44 PST 2007


Christof wrote:
> 

> There is the function wx.DrawWindowOnDC which probably should do what I want. 
> However, there is a problem with widgets having custom drawign code: 
> the wx.EVT_PAINT is not send and therefore my custom OnPaint-Method not
> executed.    

wx.DrawWindowOnDC is just what is left over from my experiments from 
several years ago when I was trying to figure out how to make this work. 
  I tried several approaches.  Most of them were based on undocumented 
hacks, and none of them was able to always capture all widget types in 
all situations.  There were even widely different results on different 
versions of Windows.

For the other platforms: on OS X there are APIs to handle this and so it 
is probably fully supported there, but I never tried implementing it. 
For wxGTK there is nothing at all that I could find (hack or API) that 
would allow functionality like this to be implemented.


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





More information about the wxpython-users mailing list