phoenix_title wx.lib.agw.hypertreelist.EditCtrl

Base class for controls used for in-place edit.


class_hierarchy Class Hierarchy

Inheritance diagram for class EditCtrl:

sub_classes Known Subclasses

wx.lib.agw.hypertreelist.EditTextCtrl


method_summary Methods Summary

__init__

Default class constructor.

AcceptChanges

Accepts/refuses the changes made by the user.

column

Returns the column currently edited.

Finish

Finish editing.

item

Returns the item currently edited.

OnKillFocus

Handles the wx.EVT_KILL_FOCUS event for EditCtrl

StopEditing

Suddenly stops the editing.


api Class API

class EditCtrl(object)

Base class for controls used for in-place edit.


Methods

__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.

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(self)

Accepts/refuses the changes made by the user.



column(self)

Returns the column currently edited.



Finish(self)

Finish editing.



item(self)

Returns the item currently edited.



OnKillFocus(self, event)

Handles the wx.EVT_KILL_FOCUS event for EditCtrl

Parameters:

event – a FocusEvent event to be processed.



StopEditing(self)

Suddenly stops the editing.