title: Double buffering with wxpython
body: <p>I'm working on an multiplatform application with wxpython and I had flickering problems on windows, while drawing on a Panel.
  I used to draw on a buffer (wx.Bitmap) during mouse motions events and my OnPaint method was composed of just on line:</p>
  
  <pre><code>dc = wx.BufferedPaintDC(self, self.buffer)
  </code></pre>
  
  <p>Pretty standard but still I had flickering problems on Windows, while everything worked fine on Linux.</p>
  
  <p>I <strong>solved my problem</strong> calling <code>SetDoubleBuffered(True)</code> in the <code>__init__</code> method.</p>
  
  <p>The strange thing is that now everything works even if I don't use BufferedPaintDC anymore. I changed my application so that all the drawing part is done in the OnPaint method. I don't use a buffer and drawing is done directly on a wx.PaintDC with no flickering problems at all.</p>
  
  <p>So my question is: is BufferedPaintDC totally useless? Or deprecated somehow? I'm owner of the book "WxPython in Action" (2006) and it doesn't even mention SetDoubleBuffered</p>