473,320 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Setting Focus in WxTextCtrl

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.
Jul 18 '05 #1
1 2222
LutherRevisited wrote:
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
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: hellprout | last post by:
hi , i have a problem with a wxtextctrl with multiline option. i want to write a file , line after line , in my wxtextctrl . But my file is too longer , and the wxtextctrl can't write the end of...
2
by: Tim | last post by:
How can I set the style attribute in the following wxTextCtrl to a new style AFTER I have already instantiated the wxTextCtrl? I'm trying to toggle the word wrap attribute of the wxTextCtrl, just...
3
by: Russ Phillips | last post by:
I'm just starting to learn Python & wxPython. I have a frame named frSend in a file fSend. On this frame is a wxTextCtrl named txtMsg. I have a module named defs.py I would like to get the value...
2
by: Nicolas Pourcelot | last post by:
Hello, my script worked well until today : when I tried to launch it, I got the following : frame = MyFrame(None,-1,"Geometrie",size=wx.Size(600,400)) File...
0
by: austin | last post by:
I produced 5 wxTextCtrl. My program is to let the user enter the serial number. Each wxTextCtrl has 4 maxlength. My ideal is if the user enter 4 digits on first wxTextCtrl, and the program will...
4
by: Clans Of Intrigue | last post by:
Hello, this is my first post here so apologies if it's in the wrong place, inappropriate or embarrassingly stupid - please let me know :) My problem seems quite simple - I've redirected stdout to...
0
by: Shravan | last post by:
Hi, I have a Windows Forms Custom DataGrid, which is put in a usercontrol, which on setting DataSource is setting focus to grid. The call stack for setting the focus is as follows. This is not...
2
by: Mystery Man | last post by:
We have an MDI application that is not setting always setting focus to the newly corrected MDI. It is creating the form and it is the topmost but it does not have focus. The code we are using to...
0
by: alyph | last post by:
Hi, I'm using wxTextCtrl in python (wxPython 2.6, python 2.4). And I used the SetStyle function to change color of some text already shown in the TextCtrl. Everything works fine excpet if I set...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.