mouse events

Folks

I want to be able to determine if the user has clicked in my GUI outside a
specific wxScollWindow. I know that there is a mouse leave event but I
need to check for the click (any click).

Is this possible with wxPython commands or will I have to log mouse events
into some global variable (and how?)

Nigel

···

--
Nigel W. Moriarty
Building 4R0230
Physical Biosciences Division
Lawrence Berkeley National Laboratory
Berkeley, CA 94720-8235
Phone : 510-486-5709
Fax : 510-486-5909
Email : NWMoriarty@LBL.gov
Web : CCI.LBL.gov

Nigel Moriarty wrote:

Folks

I want to be able to determine if the user has clicked in my GUI outside a
specific wxScollWindow. I know that there is a mouse leave event but I
need to check for the click (any click).

Is this possible with wxPython commands or will I have to log mouse events
into some global variable (and how?)

If you capture the mouse then all mouse events will be sent to that window, then you can tell if the mouse was clicked outside of it.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!