ideally something like $dialog->get_button_by_text('OK');).
The perldoc fro Tk::Dialog says it has the same advertised widgets as Tk::DialogBox, which is shows the buttons available as B_"button-text". So in your case it would be
my $button_ok = $dialog->{SubWidget}{B_OK};
In reply to Re: Change the Behaviour of a Button in Tk::Dialog
by zentara
in thread Change the Behaviour of a Button in Tk::Dialog
by choroba
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |