[wxPython-users] Accept mouse focus for button

Chris Mellon arkanes at gmail.com
Mon Sep 17 07:59:20 PDT 2007


On 9/17/07, Frank Aune <Frank.Aune at broadpark.no> 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?
>
> Best regards,
> Frank
>

Can you provide a minimal, runnable sample that demonstrates the
problem, as well as providing your platform and wxPython version?




More information about the wxpython-users mailing list