fletcher_the_dog has asked for the wisdom of the Perl Monks concerning the following question:
My problem is that if someone wants to enter in their comments and they hit 'enter' while typing in the text box, the dialog box captures that as an event and automatically pushes its default button, which closes the dialog. This is quit annoying, is there anyway to unbind "<Return>" from the dialog box? The documentation says "DialogBox" only supports a "Show" and an "add" method.my $Dialog = $mw->DialogBox( -title=>"Add Comments", -buttons=>["OK","Cancel"] ); $Dialog->add('Label', -text=>"Comments:" )->pack(-side=>"top",-anchor=>"w"); $Dialog->add('Text', -width=>30, -height=>10 )->pack(-side=>"top",-anchor=>"w");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk DialogBox Question
by bbfu (Curate) on Aug 29, 2003 at 17:28 UTC | |
by fletcher_the_dog (Friar) on Aug 29, 2003 at 20:47 UTC | |
by sweetblood (Prior) on Aug 29, 2003 at 17:52 UTC | |
|
Re: Tk DialogBox Question
by jdtoronto (Prior) on Aug 29, 2003 at 17:25 UTC |