ungalnanban has asked for the wisdom of the Perl Monks concerning the following question:
my $align = $fnt -> cascade(-label =>"Juesify",-underline => 0, +-tearoff => 0); $align -> command(-label =>"Left",-command=>sub { # $txt->configure( -justify =>'left'); $txt->tagConfigure('left', -justify => 'left'); print "Left"; } ); $align -> command(-label =>"Right",-command=>sub { #$txt->configure(-justify=>'right'); $txt->tagConfigure('right', -justify => 'right'); print "Right"; } ); $align -> command(-label =>"Center",-command=>sub { #$txt->configure(-justify=>'center'); $txt->tagConfigure('center', -justify => 'center'); print "Center"; } );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: PERL Tk Editor: Text alignment is not working in Text widget [-justify option]
by liverpole (Monsignor) on Mar 08, 2010 at 13:31 UTC | |
Re: PERL Tk Editor: Text alignment is not working in Text widget [-justify option]
by Corion (Patriarch) on Mar 08, 2010 at 11:54 UTC | |
Re: PERL Tk Editor: Text alignment is not working in Text widget [-justify option]
by Marshall (Canon) on Mar 08, 2010 at 15:09 UTC |