Replying to myself, I will commit a change to wxPython SVN when I get
back home, if it's ok.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
···
On 10/29/07, Andrea Gavana wrote:
Hi Frank,
On 10/28/07, Frank Niessink wrote:
> Hi Andrea,
>
> Pressing enter on a selected tree item doesn't trigger an
> EVT_TREE_ITEM_ACTIVATED to be sent by CustomTreeCtrl. I can replicate
> this in the demo by checking EVT_TREE_ITEM_ACTIVATED in the
> 'CustomTreeCtrl Events' box in the CustomTreeCtrl demo, selecting a
> item in the tree and pressing Enter. Space and double clicking both
> work and trigger an EVT_TREE_ITEM_ACTIVATED event.
>
> Tested with Python 2.5, wxPython 2.8.4.2 on Windows Vista.I found that adding wx.WANTS_CHARS to CustomTreeCtrl demo on line 767
fixes the problem. I don't know what happened since previous 2.8
releases, but I have got strange behaviors relating to wx.WANTS_CHARS
in all my other applications, and lately with wx.RichTextCtrl which
refused to accept keystrokes unless this style was provided (!)