Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2016-08-25 08:20 GMT
Find Nodes?
    Voting Booth?
    The best thing I ever won in a lottery was:

    Results (354 votes). Check out past polls.