AGW Logo

agw_title EditCtrl

Base class for controls used for in-place edit.

hierarchy Inheritance Diagram

Inheritance diagram for: EditCtrl

Inheritance diagram of EditCtrl


subclasses Known Subclasses


method_summary Methods Summary

__init__Default class constructor.
AcceptChangesAccepts/refuses the changes made by the user.
FinishFinish editing.
OnKillFocusHandles the wx.EVT_KILL_FOCUS event for EditCtrl
StopEditingSuddenly stops the editing.
columnReturns the column currently edited.
itemReturns the item currently edited.

API Class API

class EditCtrl(object)[source]

Base class for controls used for in-place edit.



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

Default class constructor.

Parameters:
  • parent – the window parent. Must not be None;
  • id – window identifier. A value of -1 indicates a default value;
  • item – an instance of TreeListItem;
  • column – if not None, an integer specifying the column index. If it is None, the main column index is used;
  • owner – the window owner, in this case an instance of TreeListMainWindow;
  • value – the initial value in the control;
  • 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.


AcceptChanges()[source]

Accepts/refuses the changes made by the user.



Finish()[source]

Finish editing.



OnKillFocus(event)[source]

Handles the wx.EVT_KILL_FOCUS event for EditCtrl

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


StopEditing()[source]

Suddenly stops the editing.



column()[source]

Returns the column currently edited.



item()[source]

Returns the item currently edited.

Tree

Table Of Contents

Previous topic

hypertreelist

Next topic

EditTextCtrl