PYME.ui.patch_traitsui module

Monkey patch for traitsui.wx.constants, to fix a bug whereby text fields are not usable in dark mode due to a hard-coded background color.

We do this by installing an import hook that will redirect imports of traitsui.wx.constants to a local version which uses a more appropriate background color.

PYME.ui.patch_traitsui.GetBaseColour()
class PYME.ui.patch_traitsui.MyMetaFinder

Bases: MetaPathFinder

find_spec(fullname, path, target=None)