ramzik has asked for the wisdom of the Perl Monks concerning the following question:
#!C:/Perl/bin/perl.exe -w use Tk; use strict; use warnings; my $mw = MainWindow->new( -title => 'TEST' ); my $entry = $mw->Listbox( -height => 12, -width => 40 )->pack(); my $var = sprintf( "%-20s", "MAX VALUE" ) . " = 100"; my $var1 = sprintf( "%-20s", "MIN " ) . " = 100"; my @output = ( $var, $var1 ); foreach (@output) { print $_, "\n"; $entry->insert( 'end', $_ ); } MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Aligning output on a ListBox Tk
by gmargo (Hermit) on Dec 19, 2009 at 10:30 UTC | |
|
Re: Aligning output on a ListBox Tk
by zentara (Cardinal) on Dec 19, 2009 at 15:08 UTC | |
|
Re: Aligning output on a ListBox Tk
by ramzik (Initiate) on Dec 19, 2009 at 10:47 UTC |