A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://wxpython.org/Phoenix/docs/html/wx.AutoBufferedPaintDC.html below:

wx.AutoBufferedPaintDC — wxPython Phoenix 4.2.4a1 documentation

wx.AutoBufferedPaintDC¶

This wx.DC derivative can be used inside of an EVT_PAINT() event handler to achieve double-buffered drawing.

Just use this class instead of wx.PaintDC and make sure wx.Window.SetBackgroundStyle is called with wx.BG_STYLE_PAINT somewhere in the class initialization code, and that’s all you have to do to (mostly) avoid flicker.

The difference between wx.BufferedPaintDC and this class is that this class won’t double-buffer on platforms which have native double-buffering already, avoiding any unnecessary buffering to avoid flicker.

wx.AutoBufferedPaintDC is simply a typedef of wx.PaintDC on platforms that have native double-buffering, otherwise, it is a typedef of wx.BufferedPaintDC.

Class Hierarchy¶

Inheritance diagram for class

AutoBufferedPaintDC

:

Methods Summary¶ Class API¶
class wx.AutoBufferedPaintDC(DC)¶

Possible constructors:

AutoBufferedPaintDC(window) -> None

This DC derivative can be used inside of an EVT_PAINT() event handler to achieve double-buffered drawing.


Methods¶
__init__(self, window)¶

Constructor.

Pass a pointer to the window on which you wish to paint.

Parameters:

window (wx.Window)

Return type:

None


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4