 
       wx.lib.agw.customtreectrl.TreeTextCtrl¶
  wx.lib.agw.customtreectrl.TreeTextCtrl¶Control used for in-place edit.
This is a subclass of lib.expando.ExpandoTextCtrl as CustomTreeCtrl supports multiline
text items.
Note
To add a newline character in a multiline item, press Shift + Enter as the Enter
key alone is consumed by CustomTreeCtrl to finish the editing and Ctrl + Enter is
consumed by the platform for tab navigation.
 Methods Summary¶
 Methods Summary¶| __init__ | Default class constructor. | 
| AcceptChanges | Accepts/rejects the changes made by the user. | 
| Finish | Finish editing. | 
| item | Returns the item currently edited. | 
| OnChar | Handles the wx.EVT_CHARevent forTreeTextCtrl. | 
| OnKeyUp | Handles the wx.EVT_KEY_UPevent forTreeTextCtrl. | 
| OnKillFocus | Handles the wx.EVT_KILL_FOCUSevent forTreeTextCtrl. | 
| StopEditing | Suddenly stops the editing. | 
 Class API¶
 Class API¶TreeTextCtrl(ExpandoTextCtrl)¶Control used for in-place edit.
This is a subclass of lib.expando.ExpandoTextCtrl as CustomTreeCtrl supports multiline
text items.
Note
To add a newline character in a multiline item, press Shift + Enter as the Enter
key alone is consumed by CustomTreeCtrl to finish the editing and Ctrl + Enter is
consumed by the platform for tab navigation.
__init__(self, owner, item=None)¶Default class constructor. For internal use: do not call it in your code!
| Parameters: | 
 | 
|---|---|
| Raise: | Exception when the item has an associated image but the parent
 | 
AcceptChanges(self)¶Accepts/rejects the changes made by the user.
| Returns: | Trueif the changes to the item text have been accepted,Falseif they have been rejected (i.e., vetoed by the user). | 
|---|
Finish(self)¶Finish editing.
item(self)¶Returns the item currently edited.
| Returns: | An instance of GenericTreeItem. | 
|---|
OnChar(self, event)¶Handles the wx.EVT_CHAR event for TreeTextCtrl.
| Parameters: | event – a KeyEventevent to be processed. | 
|---|
OnKeyUp(self, event)¶Handles the wx.EVT_KEY_UP event for TreeTextCtrl.
| Parameters: | event – a KeyEventevent to be processed. | 
|---|
OnKillFocus(self, event)¶Handles the wx.EVT_KILL_FOCUS event for TreeTextCtrl.
| Parameters: | event – a FocusEventevent to be processed. | 
|---|
StopEditing(self)¶Suddenly stops the editing.