in reply to Re^11: Perl tk - How to integrate external scripts
in thread Perl tk - How to integrate external scripts

Yes i see it it was a post started by me. I'v tried to set at the end :
my $te2= tkinit->Scrolled( q/TextUndo/,-scrollbars => 'osw', -background => 'white', -font =>'normal', -wrap => 'none',)->pack; $te2>Load( "$distrib" ); MainLoop;
But in this case there is a multiple print line to see on screen and however i am unable to see even one of them. Any suggestions?

Replies are listed 'Best First'.
Re^13: Perl tk - How to integrate external scripts
by Eliya (Vicar) on Feb 01, 2012 at 14:01 UTC

    Tk::TextUndo inherits the methods from the Tk::Text widget, so you can use ->insert() to add text to the widget:

    ... $te2->insert('end', "Mean length:\t" . $stat->mean() . "\n"); +# append line ... ... # $te2->see('end'); # optionally scroll to the end
      Eliya you're great !!! At this rate I'll mention you in the acknowledgments of my PhD thesis :) Thanks a lot