Setting Focus in WxTextCtrl

  • Thread starter LutherRevisited
  • Start date
L

LutherRevisited

I'm wanting to know how I would go about setting the focus to the next text
field after I press enter. I'm guessing it's gonna be EVT_TEXT_ENTER(yada
yada) calling some function which will move the focus, but I don't know how to
move the focus. I know in .NET text boxes have a focus method which will do
this, but I can't find anything similar in the places I've looked so far.
 
G

Greg Krohn

LutherRevisited said:
I know in .NET text boxes have a focus method which will do
this, but I can't find anything similar in the places I've looked so far.

wxPython does, in fact have such a method. It's called SetFocus. It's
actually a wx.Window method, so all controls have it. hth

greg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top