ScrolledText widgets

graham.matthews@maths.anu.edu.au
4 Jan 1995 02:37:01 GMT

I have a ScrolledText widget W on my screen. I read a line of input
from a process P and write this line to W by doing,

W.insert('end', my_new_line)

Now when I have output H lines of output (where H is the height of W)
I would like W to automatically scroll each time I add a new line to
it, so that W always displays the *last* H lines of output. I have tried
experimenting with yview and yscrollcommand to achieve this effect but
to no avail. Does anyone have any suggestions?

graham

PS: please mail me suggestions as my newsserver is temporarily having
some problems.

--
       The Electric Monk was a labour-saving device, like a dish
     washer or a video recorder. Dishwashers washed tedious dishes 
      for you, ... video recorders watched tedious television for 
           you, ... Electric Monks believed things for you