(self, parent, value, id=wx.ID_ANY, style=0, validator=None, **kwargs)
| 58 | class 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 |
no test coverage detected