Hi..
I used Text widget so I wrote my code like.
$align -> command(-label =>"Left",-command=>sub
{
#$txt->configure( -justify =>'left');
$txt->tagConfigure('left', -justify => 'left');
} );
$align -> command(-label =>"Right",-command=>sub
{
#$txt->configure(-justify=>'right');
$txt->tagConfigure('right', -justify => 'right');
} );
$align -> command(-label =>"Center",-command=>sub
{
#$txt->configure(-justify=>'center');
$txt->tagConfigure('center', -justify => 'center');
} );
but the text in the Text widget are not aligned to left,right or center.
How can I achieve the text alignment option in Text widget?