Python: Scroll a ScrolledText automatically to the end if the user is not scrolling manually
- 阅读更多 关于 Python: Scroll a ScrolledText automatically to the end if the user is not scrolling manually
问题 I made my ScrolledText scroll automatically to the end, based on this answer. Now I'd like to scroll automatically only if the user is not scrolling manually . I was looking for something like this: self.text.offsetBottom (see my comment in the code below) , but couldn't find it yet. Any ideas? Thanks! import time from Tkinter import * import ScrolledText class Example(Frame): def __init__(self, *args, **kwargs): Frame.__init__(self, *args, **kwargs) self.text = ScrolledText.ScrolledText(self