AGW Logo

agw_title FloatTextCtrl

A class which holds a wx.TextCtrl, one of the two building blocks of FloatSpin.

hierarchy Inheritance Diagram

Inheritance diagram for: FloatTextCtrl

Inheritance diagram of FloatTextCtrl


method_summary Methods Summary

__init__Default class constructor.
OnCharHandles the wx.EVT_CHAR event for FloatTextCtrl.
OnDestroyHandles the wx.EVT_WINDOW_DESTROY event for FloatTextCtrl.
OnKillFocusHandles the wx.EVT_KILL_FOCUS event for FloatTextCtrl.

API Class API

class FloatTextCtrl(wx.TextCtrl)[source]

A class which holds a wx.TextCtrl, one of the two building blocks of FloatSpin.



__init__(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)[source]

Default class constructor. Used internally. Do not call directly this class in your code!

Parameters:
  • parent – the FloatTextCtrl parent;
  • id – an identifier for the control: a value of -1 is taken to mean a default;
  • value – default text value;
  • pos – the control position. A value of (-1, -1) indicates a default position, chosen by either the windowing system or wxPython, depending on platform;
  • size – the control size. A value of (-1, -1) indicates a default size, chosen by either the windowing system or wxPython, depending on platform;
  • style – the window style;
  • validator – the window validator;
  • name – the window name.


OnChar(event)[source]

Handles the wx.EVT_CHAR event for FloatTextCtrl.

Parameters:event – a wx.KeyEvent event to be processed.


OnDestroy(event)[source]

Handles the wx.EVT_WINDOW_DESTROY event for FloatTextCtrl.

Parameters:event – a wx.WindowDestroyEvent event to be processed.

Note

This method tries to correctly handle the control destruction under MSW.



OnKillFocus(event)[source]

Handles the wx.EVT_KILL_FOCUS event for FloatTextCtrl.

Parameters:event – a wx.FocusEvent event to be processed.

Note

This method synchronizes the wx.SpinButton and the wx.TextCtrl when focus is lost.

Tree

Table Of Contents

Previous topic

FloatSpinEvent

Next topic

floatspin functions