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