- or download this
my $button = $mw->Button(-text => $label);
- or download this
$button->configure(-command => [ \&show_button_label, $button ]);
-or-
$button->configure(-command => sub { show_button_label($button) })
+;
- or download this
#!/usr/bin/perl
...
my $label = $button->cget(-text);
print "Label for button '$button' is '$label'\n";
}