Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Tkx textbox

by jack64 (Initiate)
on May 20, 2013 at 17:47 UTC ( [id://1034382]=perlquestion: print w/replies, xml ) Need Help??

jack64 has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks i have created a gui using tkx and im using a textbox ..

my $input = $mw->new_tk__text( -width => 40, -height => 5, -state => " +normal", -wrap => "none" );

I need to read the data whatever written in the textbox and store it in a variable (for eg $variable)....

I have asked the above question in previous post and i have been given some documents to go through..i have found how to print using insert()..but im not able to read using get() ..

please guide monks....

Replies are listed 'Best First'.
Re: Tkx textbox
by Gangabass (Vicar) on May 21, 2013 at 01:19 UTC
    You need:
    my $input = $mw->new_tk__text( -width => 40, -height => 5, -state => " +normal", -wrap => "none", ); my $content = $input->get("1.0", "end");
Re: Tkx textbox
by Anonymous Monk on May 21, 2013 at 02:18 UTC

    I have asked the above question in previous post and i have been given some documents to go through..i have found how to print using insert()..but im not able to read using get() ..

    You were also given running code, OTOH, the code you posted has no get anywhere :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 09:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found