Skip to content

how to automatically scroll pygubu scrolledframe to end of input text? #185

Answered by alejandroautalan
AJ6CU asked this question in Q&A
Discussion options

You must be logged in to vote

Hello Mark,

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?

Just use the method "see" of the tk.Text widget after adding your text log.

txt.see("end")

Using an instance of the pygubu scrolledframe widget to contain a tk.Text

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.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by alejandroautalan
Comment options

You must be logged in to vote
3 replies
@alejandroautalan
Comment options

@jrezai
Comment options

@alejandroautalan
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants