in reply to Re: Display text in Unix window with Perl
in thread Display text in Unix window with Perl

I think you want the Text or Scrolled widget in Tk This ought to be close to something that will work. I am newbie but this works for me.
use Tk; my $mw = MainWindow -> new(); my $text = $mw -> Scrolled("Text", -height => 45, -wrap => 'word') -> place (#whatever works); then you need these to add, delete and get text to window. $text -> insert('end', $whatever); $text -> delete("1.0",'end'); my $fetch_the_text = $text -> get("1.0","end");
Should work Unix or Windows, and you can cut and paste from outside the Window.

edited: Sat Jul 19 23:41:30 2003 by jeffa - code tags

Replies are listed 'Best First'.
Re: Display text in Unix window with Perl
by Anonymous Monk on Jul 19, 2003 at 23:26 UTC
    Doh, sorry for no formatting, :(