Simen has brought up the fact that the dTreeView control doesn't wrap all of the wxPython events. One in particular is wx.EVT_TREE_ITEM_ACTIVATED, which is fired when the user double- clicks on a node, or presses Enter from the keyboard.

We went through a similar discussion with list-based controls: do we fire "Hit" when a node is selected, or when it is activated? Currently the tree mirrors the list controls: merely clicking on an item, even if it is already selected, fires the Hit event; if the selection is now different, the TreeSelection event also fires. If we leave this behavior like this, what event should we raise when the user double-clicks or presses Enter on a tree node?


-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to