Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Justify text Tcl::Tk

by dbuckhal (Chaplain)
on Mar 10, 2016 at 16:18 UTC ( [id://1157313]=note: print w/replies, xml ) Need Help??


in reply to Justify text Tcl::Tk

How about thinking outside the "Tk box" and pre-format your text before you assign it to the text attribute:
$ perl -le ' $left = sprintf( ">>%-10s<<", "left" ); $right = sprintf( ">>%10s<<", "right" ); print "$left\n"; print "$right\n"; ' __output__ >>left << >> right<<
Hope it helps!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1157313]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2024-04-23 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found