Hi (again). I am using the Tk module with a Checkbutton routine as follows;
# Set up frames to contain all the pids (for selection) my $frame_pids; $frame_pids = $main->Frame(-borderwidth => 2, -relief => 'groove'); my @sortedKeys = ( sort keys %IdxToNickName ); for my $k (@sortedKeys) { my $pid_nickname = $IdxToNickName{$k}; my $cb = $frame_pids->Checkbutton( -text => sprintf("%-15s",$pid_nickname), # courier and -15 implies fixed length left justifi +ed -variable => \$IdxToNickNameSel{$k}, # this is a hash for the selection result (so other +s can access) -font => ['courier', 10, 'bold'] # and a font size ); $IdxToNickNameSel{$k} = 0; # Initialise the selection to 0 $cb->pack(-side => 'top'); # Pack the cb according to left c +riteria }
This permits me to have the checkbutton selections reference by the whole of the program (using "-variable"). For my next step I would like to selectively product the results and load into a hash which in turn is reflected onto the screen. What is the best way to achieve this output ??
I expect the "-variable" option needs to be available, this this does not seem to be available for Text and Labels.
Regards JC......
In reply to Perl Tk module; optional select to result presentation by jmClifford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |