in reply to Perl tk [ Tk::Text -justify option is not working
#!/usr/bin/perl use warnings; use strict; use Tk; use Tk::Text; use strict; my $mw = MainWindow->new; my $t = $mw->Scrolled('Text', -scrollbars=> 'se', -height=> 5, -background =>'white', -wrap => 'none') ->pack(-side=>'bottom', -fill=> 'both', -expand=> '1'); $t->tagConfigure('right', -justify => 'right'); $t->insert('end',"This is a right justified, none wrapping text.\n",'r +ight'); $t->insert('end','Try to type some text over the left edge of the wind +ow here: ','right'); $t->focus; MainLoop;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Perl tk [ Tk::Text -justify option is not working
by ungalnanban (Pilgrim) on Mar 01, 2010 at 07:22 UTC | |
by zentara (Cardinal) on Aug 02, 2010 at 17:48 UTC |