[wxPython-users] Textctrl / Combobox focus
Robin Dunn
robin at alldunn.com
Mon Nov 26 10:02:41 PST 2007
Steve Senior wrote:
> Hi,
>
> I have various frames (miniframes with panel's attached) used for data entry by
> the user.
>
> These frames have editable comboboxes and textctrl's.
>
> I want to be able to have the first control on the page with a blinking cursor
> ready for the user to type something without them having to click to activate
> the control.
>
> I thought it would be a case of just calling SetFocus() on the control but this
> doesn't work.
It should. What is the platform and version? Are you doing anything
out of the ordinary between the time the frame & widgets are created and
shown? Does doing wx.CallAfter(widget.SetFocus) help?
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list