Hi Mick, On Tue, 16 Mar 2010 18:22:00 +0100 "Michael O'Donnell" <michael.odonn...@uam.es> wrote:
> Hi all, > > Under Windows with python 2.6.4 Tkinter 8.5 > > I am trying to find a way to restore exactly the same scroll > position in a scrolled text widget, after deleting all text and > re-inserting the same text. > I think it should work like this: >>> from ScrolledText import ScrolledText >>> s=ScrolledText() >>> s.pack(fill='both', expand=1) >>> s.insert('end', some_text) >>> first, last = s.yview() >>> s.delete(1.0, 'end') >>> s.insert('end', some_text) >>> s.yview_moveto(first) I hope this helps Michael _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss