[wxPython-users] Reading a checkbox status with mouse left up
event
Christopher Barker
Chris.Barker at noaa.gov
Thu Nov 29 11:16:31 PST 2007
Fabrizio Pollastri wrote:
> Otherwise, if I use the EVT_CHECKBOX event, it works fine.
That's what EVT_CHECKBOX is for -- why do you want to do it this way???
> Where is the catch? Thank you in advance for any help.
I suspect it's a question of when the events are processed. eh mouse
click happens, your event handler gets called, then then checkbox is
changed, rather than the other way around. If you really want to get the
value after a Mouse click, maybe you can use wx.CallAfter() in your
mouse event handler.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list