Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The above code works normally when we select the buttons Yes, No, Abort using the mouse or the space bar but when we select it using the enter key <Return> the default button value in my case i.e 'Yes' is seleted inspite what ever the value that is selected.my $db = $mw->DialogBox(-title => 'Dialog', -buttons => ['Yes','No','A +bort'],-default_button => 'Yes'); $db->Label(-text =>"This is a dialog")->pack(-side=>'top', -ipady=>5); my $answer = $db->Show(); print "Your selection is $answer \n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dialog box Binding issue
by BrowserUk (Patriarch) on Dec 12, 2008 at 09:59 UTC | |
|
Re: Dialog box Binding issue
by GrandFather (Saint) on Dec 12, 2008 at 09:59 UTC | |
by Anonymous Monk on Dec 12, 2008 at 12:02 UTC | |
by GrandFather (Saint) on Dec 12, 2008 at 18:41 UTC | |
by Anonymous Monk on Dec 13, 2008 at 13:39 UTC | |
by Anonymous Monk on Dec 12, 2008 at 14:29 UTC | |
|
Re: Dialog box Binding issue
by imrags (Monk) on Dec 12, 2008 at 09:30 UTC | |
|
Re: Dialog box Binding issue
by zentara (Cardinal) on Dec 12, 2008 at 18:03 UTC | |
|
Re: Dialog box Binding issue
by zentara (Cardinal) on Dec 12, 2008 at 15:27 UTC |