Mar-12-2020, 10:28 AM
Hello, I use a text winget, when the window is full how to automatically scroll the text upwards to see the last line displayed.
Example.
In the window the display stops at "Texte : 3", to see "Texte : 19", I have to scroll the text with the mouse wheel.
I would like the last line to always be visible.
Do you have an idea.
Cordially.
Marc.
Example.
from tkinter import * root = Tk() root.geometry('180x120') texte = "***Pret***\n" ## winget texte Console = Text(root,height=5, width=20, wrap='word',) Console.place(x = 0, y = 0) ## Ajout du texte Console.insert(END, texte) for i in range (20): print("Texte : ",i) Console.insert(END, "Texte : "),Console.insert(END, i),Console.insert(END, "\n")
In the window the display stops at "Texte : 3", to see "Texte : 19", I have to scroll the text with the mouse wheel.
I would like the last line to always be visible.
Do you have an idea.
Cordially.
Marc.