Say I have a text widget called self.txt . I also have a scrollbar called scroll .
self.txt
scroll
I have configured the scroll bar to work with self.txt , but I need the Text widget to stay scrolled down whenever text is added to it.
Text
Is this doable?
I think this should work: every time the text changes, it should be called:
def modified(self, event): self.txt.see(END) # tkinter.END if you use namespaces
To catch the modification, use:
self.txt.bind('<<Modified>>', self.modified)
Source: https://habr.com/ru/post/1489770/More articles:Responsive design when loading a page in an iOS app web application - iosgit "Your branch and" source / master "diverge" after a new clone of a remote repo - gitConfiguring Cassandra with Private IP for Interconnections - privateMvvMCross moves multiple view / truncate navigation stack modes - iosremove space between buttons in navigation element rightbuttonitems - ioscustom serialization - ISerializable and secure / private constructor for deserialization - constructorUIScrollView does not scroll - iosApache tika: remove extra lines in result line - javaAVCaptureVideoPreviewLayer and OpenCV - iosAdd a view between two rows Gridview - androidAll Articles