Help for this page

Select Code to Download


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