![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
I am writing a small program using Tkinter that needs to process two separate data entries. I am using two entry widgets and focus the cursor on the first entry at the start of the program.
What I need, is a way to shift the focus to the second entry after the user has completed the first data entry and pressed the enter key. Any help?
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
No idea with Tkinter
. In PyQt you'd just connect the text edit's returnPressed() signal with the other text edit's focus() signal - connect(textedit1, SIGNAL("returnPressed()"), textedit2, SLOT("focus()"))Look for a way to catch an "enter pressed event" and get a callback for it. Then set the focus. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|