Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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:
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)

Replies are listed 'Best First'.
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.


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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://178657]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2018-02-20 14:18 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (271 votes). Check out past polls.