Hi all,
The wxListBox event handlers (EVT_LISTBOX and EVT_LISTBOX_DCLICK) are
giving me a headache.
I've got two distinct functions associated with the two handlers - each
one opens a different wxDialog.
1) Single click calls Function-A, and opens Dialog-A
2) Double click calls Function-B, and opens Dialog-B
The first works fine.
The second triggers both an EVT_LISTBOX AND an EVT_LISTBOX_DCLICK, but
only Function-A and Dialog-A run, which I'd like to avoid.
(Note: If I disable the EVT_LISTBOX handler temporarily, the
EVT_LISTBOX_DCLICK opens Dialog-B, as desired, so the code in Function-B
seems to be okay).
The demo exhibits similar behavior, but the d-click function runs right
after the select function.
Function-A gets the correct EVENT_TYPE (single-click select), so there's
no way to tell if a double-click is following.
Any ideas on how to determine if a double-click was issued so I can
by-pass opening Dialog-A?
Or any ideas on how to achieve two distinct Dialogs from a wxListBox
using the mouse?
I'm on WinXP, with Python 2.2.2 and wxPython 2.4.0.7.
(also, I've tried a Right_Up event to separate the two functions, but
the hit_test is not implemented according to the archives, for wxListBox
- is there any chance that will be available in the near future?)
Thanks in advance for any suggestions,
Dan Cherry