phoenix_title wx.DCTextBgModeChanger

wx.DCTextBgModeChanger is a small helper class for setting a background text mode on a wx.DC and unsetting it automatically in the destructor, restoring the previous one.

New in version 4.1/wxWidgets-3.1.3.

See also

wx.DC.SetBackgroundMode , wx.DCFontChanger, wx.DCPenChanger, wx.DCBrushChanger, wx.DCClipper, wx.DCTextColourChanger, wx.DCTextBgColourChanger


class_hierarchy Class Hierarchy

Inheritance diagram for class DCTextBgModeChanger:

method_summary Methods Summary

__enter__

__exit__


api Class API

class wx.DCTextBgModeChanger(object)

DCTextBgModeChanger is a small helper class for setting a background text mode on a DC and unsetting it automatically in the destructor, restoring the previous one.


Methods

__enter__(self)


__exit__(self, exc_type, exc_val, exc_tb)