.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2020 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. currentmodule:: wx.lib.agw.floatspin
.. highlight:: python
.. _wx.lib.agw.floatspin.FloatTextCtrl:
==========================================================================================================================================
|phoenix_title| **wx.lib.agw.floatspin.FloatTextCtrl**
==========================================================================================================================================
A class which holds a :class:`TextCtrl`, one of the two building blocks
of :class:`FloatSpin`.
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
FloatTextCtrl:
|
|super_classes| Known Superclasses
==================================
:class:`wx.TextCtrl`
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.lib.agw.floatspin.FloatTextCtrl.__init__` Default class constructor.
:meth:`~wx.lib.agw.floatspin.FloatTextCtrl.OnChar` Handles the ``wx.EVT_CHAR`` event for :class:`FloatTextCtrl`.
:meth:`~wx.lib.agw.floatspin.FloatTextCtrl.OnDestroy` Handles the ``wx.EVT_WINDOW_DESTROY`` event for :class:`FloatTextCtrl`.
:meth:`~wx.lib.agw.floatspin.FloatTextCtrl.OnKillFocus` Handles the ``wx.EVT_KILL_FOCUS`` event for :class:`FloatTextCtrl`.
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: FloatTextCtrl(wx.TextCtrl)
A class which holds a :class:`TextCtrl`, one of the two building blocks
of :class:`FloatSpin`.
.. method:: __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!
:param `parent`: the :class:`FloatTextCtrl` parent;
:param `id`: an identifier for the control: a value of -1 is taken to mean a default;
:param `value`: default text value;
:param `pos`: the control position. A value of (-1, -1) indicates a default position,
chosen by either the windowing system or wxPython, depending on platform;
:param `size`: the control size. A value of (-1, -1) indicates a default size,
chosen by either the windowing system or wxPython, depending on platform;
:param `style`: the window style;
:param `validator`: the window validator;
:param `name`: the window name.
.. method:: OnChar(self, event)
Handles the ``wx.EVT_CHAR`` event for :class:`FloatTextCtrl`.
:param `event`: a :class:`KeyEvent` event to be processed.
.. method:: OnDestroy(self, event)
Handles the ``wx.EVT_WINDOW_DESTROY`` event for :class:`FloatTextCtrl`.
:param `event`: a :class:`wx.WindowDestroyEvent` event to be processed.
.. note:: This method tries to correctly handle the control destruction under MSW.
.. method:: OnKillFocus(self, event)
Handles the ``wx.EVT_KILL_FOCUS`` event for :class:`FloatTextCtrl`.
:param `event`: a :class:`FocusEvent` event to be processed.
.. note:: This method synchronizes the :class:`SpinButton` and the :class:`TextCtrl`
when focus is lost.