 
       wx.lib.agw.floatspin.FloatTextCtrl¶
  wx.lib.agw.floatspin.FloatTextCtrl¶A class which holds a TextCtrl, one of the two building blocks
of FloatSpin.
 Methods Summary¶
 Methods Summary¶| __init__ | Default class constructor. | 
| OnChar | Handles the wx.EVT_CHARevent forFloatTextCtrl. | 
| OnDestroy | Handles the wx.EVT_WINDOW_DESTROYevent forFloatTextCtrl. | 
| OnKillFocus | Handles the wx.EVT_KILL_FOCUSevent forFloatTextCtrl. | 
 Class API¶
 Class API¶FloatTextCtrl(wx.TextCtrl)¶A class which holds a TextCtrl, one of the two building blocks
of FloatSpin.
__init__(self, parent, id=wx.ID_ANY, value="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.TE_NOHIDESEL | wx.TE_PROCESS_ENTER, validator=wx.DefaultValidator, name=wx.TextCtrlNameStr)¶Default class constructor. Used internally. Do not call directly this class in your code!
| Parameters: | 
 | 
|---|
OnChar(self, event)¶Handles the wx.EVT_CHAR event for FloatTextCtrl.
| Parameters: | event – a KeyEventevent to be processed. | 
|---|
OnDestroy(self, event)¶Handles the wx.EVT_WINDOW_DESTROY event for FloatTextCtrl.
| Parameters: | event – a wx.WindowDestroyEventevent to be processed. | 
|---|
Note
This method tries to correctly handle the control destruction under MSW.
OnKillFocus(self, event)¶Handles the wx.EVT_KILL_FOCUS event for FloatTextCtrl.
| Parameters: | event – a FocusEventevent to be processed. | 
|---|
Note
This method synchronizes the SpinButton and the TextCtrl
when focus is lost.