GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.TreeEvent — wxPython 4.3.2 Docs
|
Constructor, used by wxWidgets itself only. |
|
Returns the item. |
|
Returns the key code if the event is a key event. |
|
Returns the key event for |
|
Returns the label if the event is a begin or end edit label event. |
|
Returns the old item index (valid for |
|
Returns the position of the mouse pointer if the event is a drag or menu-context event. |
|
Returns |
|
Set the tooltip for the item (valid for |
Properties Summary¶See |
|
See |
|
See |
|
See |
|
See |
|
See |
Class API¶Possible constructors:
TreeEvent(commandType, tree, item=TreeItemId()) -> None
A tree event holds information about events associated with TreeCtrl objects.
Constructor, used by wxWidgets itself only.
commandType (wx.EventType)
tree (wx.TreeCtrl)
item (wx.TreeItemId)
None
Returns the item.
Note that the item may be invalid for wxEVT_TREE_SEL_CHANGED events when the previously selected item has been deselected and there is no new selection any longer, as it notably happens when deleting all tree control items.
Returns the key code if the event is a key event.
Use GetKeyEvent to get the values of the modifier keys for this event (i.e. Shift or Ctrl).
int
Returns the key event for EVT_TREE_KEY_DOWN events.
Returns the label if the event is a begin or end edit label event.
str
Returns the old item index (valid for EVT_TREE_SEL_CHANGING and EVT_TREE_SEL_CHANGED events).
Returns the position of the mouse pointer if the event is a drag or menu-context event.
In both cases the position is in client coordinates - i.e. relative to the wx.TreeCtrl window (so that you can pass it directly to e.g. wx.Window.PopupMenu ).
Returns True if the label edit was cancelled.
This should be called from within an EVT_TREE_END_LABEL_EDIT handler.
bool
Set the tooltip for the item (valid for EVT_TREE_ITEM_GETTOOLTIP events).
Windows only.
tooltip (string)
None
See GetKeyCode
See GetKeyEvent
See GetOldItem