Dec 28, 2010, 10:07 PM
Post #1 of 1
Perl Tk - DialogBox help
I am trying to get some information from the user using a DialogBox.
I have entered a Text widget in it so it is important to enable pressing <Return> key to enter multiple lines in the Text widget.
My problem is that when I press the <Return> key it immediately invokes the default button of the widget.
I have tried to disable the default button, but if I leave the -default_button configuration empty it selects it by herself,
and if I try to enter a button name that is not in the widget (so it won't have a default button) it prints to STDERR (which I really don't want)
is there any way to disable the default button / bind the default button to some other key (like mouse key or something) ?