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

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