Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
sub button_setup($prog_select) { my $prog = shift; foreach my $key (keys %{$button{$prog}}) { my $key = $buttons->Button( -text => $key, -width => '10', -command => sub {system "$button{$prog}{$key}";} )->pack(-side => 'top', -pady=>'10'); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Creating dynamic Tk buttons??
by converter (Priest) on Jun 06, 2003 at 17:23 UTC |