skywalker has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl use Tk; use strict; use warnings; # Main Window my $mw = new MainWindow; #GUI Building Area my @style_sizes_array = qw(XXS XS S M L XL XXL XXXL); #checkbutton sizes setup for (my $ctr = 0; $ctr < @style_sizes_array; $ctr++){ my $size_type = $style_sizes_array[$ctr]; my $frmTemp = $mw->Frame() ->pack(-anchor => 'nw',-side => 'top'); $frmTemp ->Checkbutton(-text => $size_type,-width => 10, -variable => \$ctr)->pack(-anchor =>'nw',-fi +ll => 'both',-expand => 1); } MainLoop();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: checkbutton alignment
by Marshall (Canon) on Nov 11, 2011 at 22:38 UTC | |
by skywalker (Beadle) on Nov 12, 2011 at 01:09 UTC | |
|
Re: checkbutton alignment
by zentara (Cardinal) on Nov 12, 2011 at 11:36 UTC |