how to automatically scroll pygubu scrolledframe to end of input text? #185
-
Using an instance of the pygubu scrolledframe widget to contain a tk.Text. The Tet object is basically a log that I write to. Is there a way to autoscroll the window so that the latest output is always shown? Perhaps I have the height missmatched between the scrolledFrame and the Text widget? I assume I could have a much larger text widget and that the scrollframe would provide a window into that text widget. Only need the vertical (y) to keep up with the ongoing log. Thanks for any help! Mark |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hello Mark,
Just use the method "see" of the tk.Text widget after adding your text log.
If you are using scrolledframe only to add scrollbars to tk.Text is better to use the ScrollbarHelper. I created and example using a tk.Text with a ScrollbarHelper. Regards |
Beta Was this translation helpful? Give feedback.
-
Alejandro, Your example worked perfectly! Thank you. Here is a screen capture of the tool I am working on for the uBITX ham radio firmware. More and more of this is being generated just by your tool. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Happy New Years to you all too! Thank you for making this wonderful tool available. MarkSent from my iPhoneOn Jan 4, 2023, at 2:03 PM, Alejandro Autalán ***@***.***> wrote:
Thank you @jrezai, happy new year to you too!
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Hello Mark,
Just use the method "see" of the tk.Text widget after adding your text log.
If you are using scrolledframe only to add scrollbars to tk.Text is better to use the ScrollbarHelper.
I created and example using a tk.Text with a ScrollbarHelper.
Regards
Alejandro A.