in reply to Change the Behaviour of a Button in Tk::Dialog
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};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Change the Behaviour of a Button in Tk::Dialog
by Discipulus (Canon) on May 15, 2017 at 17:49 UTC | |
by zentara (Cardinal) on May 15, 2017 at 18:12 UTC | |
by Discipulus (Canon) on May 15, 2017 at 18:20 UTC | |
|
Re^2: Change the Behaviour of a Button in Tk::Dialog
by choroba (Cardinal) on May 15, 2017 at 19:32 UTC |