Don't ask to ask, just ask | |
PerlMonks |
Tk DialogBox Enter key behaviorby tallwithblueeyes (Novice) |
on Jun 17, 2010 at 22:39 UTC ( [id://845289]=perlquestion: print w/replies, xml ) | Need Help?? |
tallwithblueeyes has asked for the wisdom of the Perl Monks concerning the following question:
I have a Tk DialogBox that contains a Text box subwidget in its top frame. There are "OK' and 'cancel' buttons in the bottom frame.
I want to be able to allow the user to press <Enter> when the focus is in the Textbox and add a new line of text. Instead what is happening is that the <Enter> key is causing the DialogBox button binding to be invoked, and it behaves as if i was pressing the OK button. Any way to get my textbox behavior back in this circumstance?
Back to
Seekers of Perl Wisdom
|
|