Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Auto-scrolling scrollbars with Perl Tk

by dree (Monsignor)
on Jul 01, 2002 at 19:40 UTC ( #178657=note: print w/ replies, xml ) Need Help??


in reply to Auto-scrolling scrollbars with Perl Tk

You can use:

$text->see(index)
From the docs:

Adjusts the view in the window so that the character given by index is completely visible. If index is already visible then the command does nothing. If index is a short distance out of view, the command adjusts the view just enough to make index visible at the edge of the window. If index is far out of view, then the command centers index in the window.

UPDATE: you can also see:

$text->yview(moveto => fraction)
$text->yview(scroll => number, what)


Comment on Re: Auto-scrolling scrollbars with Perl Tk
Download Code
Re: Re: Auto-scrolling scrollbars with Perl Tk
by Ovid (Cardinal) on Jul 01, 2002 at 19:57 UTC

    Thank you. After I write to the text widget, I then call $txtSummary->see('end'); and it works perfectly.

    Cheers,
    Ovid

    Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://178657]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2014-07-29 10:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (214 votes), past polls