CommandTreeEvent is a special subclassing of wx.PyCommandEvent.
Note
Not all the accessors make sense for all the events, see the event description for every method in this class.
__init__ | Default class constructor. |
GetItem | Gets the item on which the operation was performed or the newly selected |
GetKeyCode | Returns the virtual key code. |
GetKeyEvent | Returns the keyboard data (for EVT_TREE_KEY_DOWN event only). |
GetLabel | Returns the item text (for EVT_TREE_BEGIN_LABEL_EDIT and |
GetOldItem | Returns the previously selected item for EVT_TREE_SEL_CHANGED and |
GetPoint | Returns the point where the mouse was when the drag operation started |
GetToolTip | Returns the tooltip for the item (for EVT_TREE_ITEM_GETTOOLTIP events). |
IsEditCancelled | Returns the edit cancel flag (for EVT_TREE_BEGIN_LABEL_EDIT and |
SetEditCanceled | Sets the edit cancel flag (for EVT_TREE_BEGIN_LABEL_EDIT and |
SetItem | Sets the item on which the operation was performed or the newly selected |
SetKeyEvent | Sets the keyboard data (for EVT_TREE_KEY_DOWN event only). |
SetLabel | Sets the item text (for EVT_TREE_BEGIN_LABEL_EDIT and |
SetOldItem | Returns the previously selected item for EVT_TREE_SEL_CHANGED and |
SetPoint | Sets the point where the mouse was when the drag operation started |
SetToolTip | Sets the tooltip for the item (for EVT_TREE_ITEM_GETTOOLTIP events). |
CommandTreeEvent is a special subclassing of wx.PyCommandEvent.
Note
Not all the accessors make sense for all the events, see the event description for every method in this class.
Default class constructor. For internal use: do not call it in your code!
Parameters: |
|
---|
Gets the item on which the operation was performed or the newly selected item for EVT_TREE_SEL_CHANGED and EVT_TREE_SEL_CHANGING events.
Returns: | An instance of GenericTreeItem. |
---|
Returns the virtual key code. ASCII events return normal ASCII values, while non-ASCII events return values such as wx.WXK_LEFT for the left cursor key.
This method is for EVT_TREE_KEY_DOWN events only.
Returns: | An integer representing the virtual key code. |
---|
Note
In Unicode build, the returned value is meaningful only if the user entered a character that can be represented in current locale’s default charset. You can obtain the corresponding Unicode character using GetUnicodeKey.
Returns the keyboard data (for EVT_TREE_KEY_DOWN event only).
Returns: | An instance of wx.KeyEvent. |
---|
Returns the item text (for EVT_TREE_BEGIN_LABEL_EDIT and EVT_TREE_END_LABEL_EDIT events only).
Returns: | A string containing the item text. |
---|
Returns the previously selected item for EVT_TREE_SEL_CHANGED and EVT_TREE_SEL_CHANGING events.
Returns: | An instance of GenericTreeItem. |
---|
Returns the point where the mouse was when the drag operation started (for EVT_TREE_BEGIN_DRAG and EVT_TREE_BEGIN_RDRAG events only) or the click position.
Returns: | An instance of wx.Point. |
---|
Returns the tooltip for the item (for EVT_TREE_ITEM_GETTOOLTIP events).
Returns: | A string containing the item tooltip. |
---|
Returns the edit cancel flag (for EVT_TREE_BEGIN_LABEL_EDIT and EVT_TREE_END_LABEL_EDIT events only).
Returns: | True is the item editing has been cancelled, False otherwise. |
---|
Sets the edit cancel flag (for EVT_TREE_BEGIN_LABEL_EDIT and EVT_TREE_END_LABEL_EDIT events only).
Parameters: | editCancelled (bool) – True to cancel the editing, False otherwise. |
---|
Sets the item on which the operation was performed or the newly selected item for EVT_TREE_SEL_CHANGED and EVT_TREE_SEL_CHANGING events.
Parameters: | item – an instance of GenericTreeItem. |
---|
Sets the keyboard data (for EVT_TREE_KEY_DOWN event only).
Parameters: | event – a CommandTreeEvent event to be processed. |
---|
Sets the item text (for EVT_TREE_BEGIN_LABEL_EDIT and EVT_TREE_END_LABEL_EDIT events only).
Parameters: | label (string) – a string containing the new item text. |
---|
Returns the previously selected item for EVT_TREE_SEL_CHANGED and EVT_TREE_SEL_CHANGING events.
Parameters: | item – an instance of GenericTreeItem. |
---|
Sets the point where the mouse was when the drag operation started (for EVT_TREE_BEGIN_DRAG and EVT_TREE_BEGIN_RDRAG events only) or the click position.
Parameters: | pt – an instance of wx.Point. |
---|