in reply to PERL/Tk Scrolled Textbox: How do I tell it to automatically scroll down?
Assign the text widget value to a scalar and proceed from there:
Update: Anyways, I don't know if this sounds easy to do or not but I guess Tk::mega can give you an insight check perldoc for it, also as has been listed in the answers $text->see{INDEX} seems to be what you need check the link provided, it is so informative, other than that run the Tk module command widget from the console, it has many other things that I hope can be helpful.#assuming this is a part of a bigger Tk program.. ... my $textWidget=$main->Text( -height=>'20', -width=>'10' )->pack; $textWidget=$main->Scrolled( 'Text', scrollbars=>'w' #this can be n,s,e,w according to compass po +sitions. )->pack; ... MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PERL/Tk Scrolled Textbox: How do I tell it to automatically scroll down?
by Anonymous Monk on Oct 02, 2009 at 11:04 UTC |