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 :)