****************** wx.BufferedPaintDC ****************** Inheritance diagram for `wx.BufferedPaintDC`: | .. inheritance-diagram:: wx.BufferedPaintDC | Description =========== This is a subclass of `wx.BufferedDC `_ which can be used inside of an `OnPaint()` event handler. Just create an object of this class instead of `wx.PaintDC `_ and make sure `wx.Window.SetBackgroundStyle `_ is called with ``wx.BG_STYLE_CUSTOM`` somewhere in the class initialization code, and that's all you have to do to (mostly) avoid flicker. The only thing to watch out for is that if you are using this class together with `wx.ScrolledWindow `_, you probably do **not** want to call `PrepareDC `_ on it as it already does this internally for the real underlying `wx.PaintDC`. .. seealso:: `wx.DC `_, `wx.BufferedDC `_, `wx.AutoBufferedPaintDC `_ Derived From ^^^^^^^^^^^^^ * `wx.BufferedDC `_ * `wx.MemoryDC `_ * `wx.DC `_ * `wx.Object `_ Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__(window, buffer=wx.NullBitmap, style=wx.BUFFER_CLIENT_AREA) Create a buffered paint DC. As with `wx.BufferedDC `_, you may either provide the bitmap to be used for buffering or let this object create one internally (in the latter case, the size of the client part of the window is automatically used). **Parameters:** * `window` (`wx.Window `_) * `buffer` (`wx.Bitmap `_) * `style` (int) | **Returns:** `wx.BufferedPaintDC `_