[wxPython-users] Buttons and automatic key acelerators

Robin Dunn robin at alldunn.com
Fri Jun 16 09:30:56 PDT 2006


Simon Clay wrote:

> You can make it work by writing
> 
>   self.button_3.SetFocus()
> 
> at the start of your OnBtn3() method.  More generally,
> 
>   self.FindWindowById(event.GetId()).SetFocus()

Or simply event.GetEventObject().SetFocus()



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





More information about the wxpython-users mailing list