Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: how to write a vertical TK Entry?

by AnomalousMonk (Bishop)
on Mar 05, 2020 at 07:55 UTC ( #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
Node Status?
node history
Node Type: note [id://11113826]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2020-06-06 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (41 votes). Check out past polls.

    Notices?