.. 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.hypertreelist
.. highlight:: python
.. _wx.lib.agw.hypertreelist.EditCtrl:
==========================================================================================================================================
|phoenix_title| **wx.lib.agw.hypertreelist.EditCtrl**
==========================================================================================================================================
Base class for controls used for in-place edit.
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
EditCtrl:
|
|sub_classes| Known Subclasses
==============================
:class:`wx.lib.agw.hypertreelist.EditTextCtrl`
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.lib.agw.hypertreelist.EditCtrl.__init__` Default class constructor.
:meth:`~wx.lib.agw.hypertreelist.EditCtrl.AcceptChanges` Accepts/refuses the changes made by the user.
:meth:`~wx.lib.agw.hypertreelist.EditCtrl.column` Returns the column currently edited.
:meth:`~wx.lib.agw.hypertreelist.EditCtrl.Finish` Finish editing.
:meth:`~wx.lib.agw.hypertreelist.EditCtrl.item` Returns the item currently edited.
:meth:`~wx.lib.agw.hypertreelist.EditCtrl.OnKillFocus` Handles the ``wx.EVT_KILL_FOCUS`` event for :class:`EditCtrl`
:meth:`~wx.lib.agw.hypertreelist.EditCtrl.StopEditing` Suddenly stops the editing.
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: EditCtrl(object)
Base class for controls used for in-place edit.
.. method:: __init__(self, parent, id=wx.ID_ANY, item=None, column=None, owner=None, value="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, validator=wx.DefaultValidator, name="editctrl", \*\*kwargs)
Default class constructor.
:param `parent`: the window parent. Must not be ``None``;
:param `id`: window identifier. A value of -1 indicates a default value;
:param `item`: an instance of :class:`TreeListItem`;
:param `column`: if not ``None``, an integer specifying the column index.
If it is ``None``, the main column index is used;
:param `owner`: the window owner, in this case an instance of :class:`TreeListMainWindow`;
:param `value`: the initial value in the control;
: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:: AcceptChanges(self)
Accepts/refuses the changes made by the user.
.. method:: column(self)
Returns the column currently edited.
.. method:: Finish(self)
Finish editing.
.. method:: item(self)
Returns the item currently edited.
.. method:: OnKillFocus(self, event)
Handles the ``wx.EVT_KILL_FOCUS`` event for :class:`EditCtrl`
:param `event`: a :class:`FocusEvent` event to be processed.
.. method:: StopEditing(self)
Suddenly stops the editing.