Hi
I am attempting to streamline the use of a tk application by binding the <return> button to a button executing a process.
I have read through the other forum posts and found several suggestions but none seem to be working for me.
I have defined the button widget etc. as
Then, a few lines later I use the line
as suggested in other forum posts, however this appears to have no effect. I have been thinking about trying to assign focus to the button once the value of an entry box has changed, however this seems a bit lengthy if I could just bind the button.
Thanks in advance
I am attempting to streamline the use of a tk application by binding the <return> button to a button executing a process.
I have read through the other forum posts and found several suggestions but none seem to be working for me.
I have defined the button widget etc. as
Code:
button .traceWindow.runProc -text "Follow path..." -command proceed
Then, a few lines later I use the line
Code:
bind .traceWindow.runProc <Return> {proceed}
as suggested in other forum posts, however this appears to have no effect. I have been thinking about trying to assign focus to the button once the value of an entry box has changed, however this seems a bit lengthy if I could just bind the button.
Thanks in advance