Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: how to write a vertical TK Entry?

by AnomalousMonk (Archbishop)
on Mar 05, 2020 at 07:55 UTC ( [id://11113826]=note: print w/replies, xml ) Need Help??


in reply to how to write a vertical TK Entry?

Don't know how to rotate the characters, but...

use strict; use warnings; use Tk; use Tk::Text; my $MW = MainWindow->new; my $text_frame = $MW->Frame->pack; my $v_text = $text_frame->Text( qw(-relief flat -width 1 -height 10 -wrap char) )->pack(qw(-side left)); my $xy_text = $text_frame->Text( qw(-relief flat -width 20 -height 10 -wrap word) )->pack(qw(-side left)); $v_text->insert('1.0', '12345'); $xy_text ->insert('1.0', <<"EOT"); now is the time the rain in spain how now brown cow EOT $v_text->insert('end', 'abc'); $xy_text ->insert('end', <<"EOT"); four score and seven years ago... EOT MainLoop;


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

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

    No recent polls found