When setting up a notification on this attribute, RapaGUI will run your
event callback whenever the user wants to edit a treeview item by slowly
double-clicking on it or whenever your script runs the Treeviewleaf.Edit
or Treeviewnode.Edit method. Your callback can then permit or forbid the user's
edit request. To forbid the request, your callback has to return False
.
To permit the request, it has to return True
.
Note that you have to set Treeviewcolumn.Editable to True
if leaves
in the respective column shall be editable. To make nodes editable you have to
set Treeview.EditableNodes to True
.
Your event handler will be called with the following extra arguments:
Item:
-
ID of the node or leaf that the user wants to edit.
Column:
-
Column index of the item which the user wants to edit. For nodes this is
always 0.
See Notifications for details.