Accept mouse focus for button

Frank Aune Frank.Aune at broadpark.no
Mon Sep 17 04:05:27 PDT 2007


Hello,

I have a program where the user can move the mouse pointer over a button and 
click it to initiate a task. While the task is preforming, the button is 
Disable(). After the task completes, I run Enable() and SetFocus() on the 
button.

I can now re-start the task by pressing enter, but I have to move the mouse 
outside of the button widget and back into it to be able to click it again. 
This is pretty annoying, and I haven't figured out how to correct this. Any 
ideas?

Best regards,
Frank




More information about the wxpython-users mailing list