Question: I have a tkinter 'Text' and 'Scrollbar' working fine. In my program in the text window automatically lines will keep on adding. So When a new line of text is inserted and data reached out of limit I would like the text and scrollbar to be scrolled to the bottom automatically, so that the latest line of text is always shown. How to do this? 

Also how to link the scroll of text window and scroll bar, because when I do scrolling over the text window scroll wont happen. Only way I observed is to drag the scroll bar.

```
    scrollbar = Tkinter.Scrollbar(group4.interior())
    scrollbar.pack(side = 'right',fill='y')

    Details1 = Output()        
    outputwindow = Tkinter.Text(group4.interior(), yscrollcommand = scrollbar.set,wrap = "word",width = 200,font = "{Times new Roman} 9")
    outputwindow.pack( side = 'left',fill='y')
    scrollbar.config( command = outputwindow.yview )
    outputwindow.yview('end')
    outputwindow.config(yscrollcommand=scrollbar.set)
    outputwindow.insert('end',Details1)

```

In the program the function output() will continuously send data, which should scroll

Thanks in advance,

Answer: 
Take a look at `Text.see(...)` method.

```
TextWidget.insert(tk.END, str(new_txt))
TextWidget.see(tk.END)

```

I used this pattern to add (aka `insert`) text `new_txt` to my output window and scroll (`see`) to the bottom (`tk.END`)
Add this after the insert

TextBox.yview(END)