Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 23rd, 2005, 7:19 AM   #1
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Smile Tk Data Entry

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!
Dietrich is offline   Reply With Quote
Old Jul 23rd, 2005, 8:36 AM   #2
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
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.
Cerulean is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:19 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC