wx.DCBrushChanger¶wx.DCBrushChanger is a small helper class for setting a brush on a wx.DC and unsetting it automatically in the destructor, restoring the previous one.
See also
wx.DC.SetBrush , wx.DCFontChanger, wx.DCTextColourChanger, wx.DCPenChanger, wx.DCClipper
Class Hierarchy¶
Inheritance diagram for class DCBrushChanger:

Methods Summary¶Sets brush on the given dc, storing the old one. |
|
Class API¶wx.DCBrushChanger(object)¶Possible constructors:
DCBrushChanger(dc, brush)
DCBrushChanger is a small helper class for setting a brush on a DC and unsetting it automatically in the destructor, restoring the previous one.
__init__(self, dc, brush)¶Sets brush on the given dc, storing the old one.
__enter__(self)¶__exit__(self, exc_type, exc_val, exc_tb)¶