tkinter: always scroll to show last line of text
Raseliarison nirinA
nirina at mail.blueline.mg
Sun Mar 13 17:51:22 EST 2005
"Martin Franklin" wrote:
> Benjamin Rutt wrote:
> > I have a tkinter 'Text' and 'Scrollbar' connected and working
> > normally. When a new line of text is inserted (because I'm
> > monitoring
> > an output stream), I'd like the text and scrollbar to be scrolled
> > to
> > the bottom, so the latest line of text is always shown. How to do
> > this? Thanks,
>
>
> text.yview_pickplace("end")
>
or
text.see('end')
there is also a "ScrolledText" module
>>> import ScrolledText
>>> 'see' in dir(ScrolledText.ScrolledText)
True
--
nirinA
--
same-response-again-and-again
--
More information about the Python-list
mailing list