[wxPython-users] Accept mouse focus for button

Robin Dunn robin at alldunn.com
Mon Sep 17 15:22:05 PDT 2007


Frank Aune wrote:
> 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?

If this is on wxGTK then it is a known issue in GTK itself.  Some 
workarounds have been discussed in the wx-users list, but I don't 
remember them off the top of my head.


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





More information about the wxpython-users mailing list