MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / updateColor

Method updateColor

gui/utils/inputs.py:78–82  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76 self.ChangeValue(valToStr(value))
77
78 def updateColor(self):
79 if self.isValid():
80 self.SetForegroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOWTEXT))
81 else:
82 self.SetForegroundColour(wx.RED)
83
84 def isValid(self):
85 if self._validator is None:

Callers 2

ChangeValueMethod · 0.95
OnTextMethod · 0.95

Calls 1

isValidMethod · 0.95

Tested by

no test coverage detected