Control used for in-place edit.
This is a subclass of wx.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__ | Default class constructor. |
AcceptChanges | Accepts/rejects the changes made by the user. |
Finish | Finish editing. |
OnChar | Handles the wx.EVT_CHAR event for TreeTextCtrl. |
OnKeyUp | Handles the wx.EVT_KEY_UP event for TreeTextCtrl. |
OnKillFocus | Handles the wx.EVT_KILL_FOCUS event for TreeTextCtrl. |
StopEditing | Suddenly stops the editing. |
item | Returns the item currently edited. |
Control used for in-place edit.
This is a subclass of wx.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.
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 CustomTreeCtrl does not have a wx.ImageList assigned. |
Accepts/rejects the changes made by the user.
Returns: | True if the changes to the item text have been accepted, False if they have been rejected (i.e., vetoed by the user). |
---|
Handles the wx.EVT_CHAR event for TreeTextCtrl.
Parameters: | event – a wx.KeyEvent event to be processed. |
---|
Handles the wx.EVT_KEY_UP event for TreeTextCtrl.
Parameters: | event – a wx.KeyEvent event to be processed. |
---|
Handles the wx.EVT_KILL_FOCUS event for TreeTextCtrl.
Parameters: | event – a wx.FocusEvent event to be processed. |
---|
Returns the item currently edited.
Returns: | An instance of GenericTreeItem. |
---|