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

Re: Tk text widget reference

by mawe (Hermit)
on Nov 26, 2004 at 20:17 UTC ( [id://410624]=note: print w/replies, xml ) Need Help??


in reply to Tk text widget reference

Hi!

You can also use get:

use Tk; my $top = new MainWindow; my $t = $top->Text()->pack(); my $b = $top->Button(-text=>"OK",-command=>\&get_it)->pack(); MainLoop; sub get_it { my $text = $t->get(0.1,"end"); print "$text\n"; }

Hope this does what you want :)
mawe

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-25 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found