Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to invoke <key-enter> with command in entry form

Status
Not open for further replies.

dotaliu

Technical User
Mar 25, 2008
15
0
0
CN
I want to use command to invoke <key-enter> in entry form, how to do it ? thanks
 
I'm sorry but I don't understand your question. Do you want to bind an entry widget to a particular command when the enter key is pressed?

_________________
Bob Rashkin
 
thanks bong,
I want to input some command in the alternative terminal to replace pressing <Enter> key in the entry form of GUI.
 
I assume that by "alternative terminal" you mean the "console" window of Tk. If so, what you need to enter is the command to which "enter" is bound in the entry widget. That is, suppose in your script you have an entry named ".f1.f2.e1". Then when you type "enter" in that widget, nothing will happen unless you have something like:
Code:
bind .f1.f2.e1 <Enter> {<some command>}

So in the console, you need to mimic that bound behavior with:
Code:
<some command>

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top