in reply to Text widget width and height problems with Perl/Tk

If you want a -height, are you sure you don't want a multi-line text area? I chopped this from a piece of working code. It uses the Scrolled widget which then creates a Text widget inside.
# Scrollable text area. my $scroll = $parent->Frame(-borderwidth => 2, -relief => 'ridge') ->pack(-expand => 1, -fill => 'both'); my $text = $scroll->Scrolled('Text', -scrollbars => 'e', -width => 81, -height => 20) ->pack(-expand => 1, -fill => 'both');

--
[ e d @ h a l l e y . c c ]

Replies are listed 'Best First'.
Re: Re: Text widget width and height problems with Perl/Tk
by drwxrwxrwx (Novice) on Mar 13, 2004 at 10:55 UTC
    yes halley that's i was looking for... i didn't try to use the text widget thanks a lot :D

    i'm a luser :°°°°°