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

Method __init__

gui/utils/inputs.py:60–68  ·  view source on GitHub ↗
(self, parent, value, id=wx.ID_ANY, style=0, validator=None, **kwargs)

Source from the content-addressed store, hash-verified

58class FloatBox(wx.TextCtrl):
59
60 def __init__(self, parent, value, id=wx.ID_ANY, style=0, validator=None, **kwargs):
61 # Workaround for #2591
62 if 'wxMac' in wx.PlatformInfo and 'size' not in kwargs:
63 kwargs['size'] = wx.Size(97, 26)
64 super().__init__(parent=parent, id=id, style=style, **kwargs)
65 self.Bind(wx.EVT_TEXT, self.OnText)
66 self._storedValue = ''
67 self._validator = validator
68 self.ChangeValue(valToStr(value))
69
70 def ChangeValue(self, value):
71 self._storedValue = value

Callers 1

__init__Method · 0.45

Calls 2

ChangeValueMethod · 0.95
valToStrFunction · 0.85

Tested by

no test coverage detected