ScrolledText?

half.italian at gmail.com half.italian at gmail.com
Wed May 2 02:17:30 EDT 2007


On May 1, 3:12 pm, nik <nikb... at gmail.com> wrote:
> I've been trying to get the scrollbar and text box always going to the
> last line and have been completely unsuccessful.
>
> I've tried, ScrolledText, text.see, and text.yview_pickplace without
> success
>
> for instance this was the last setup:
>
>      self.text = ScrolledText(master, relief=RIDGE)
>      self.text.grid(column=1, row=2, columnspan=10,\
>                         rowspan=5, pady=10, sticky=NSEW)
>
> with this text entry:
>
>      self.text.insert(END, ins)
>      self.text.yview_pickplace("end")
>
> Can anybody please tell me what I might be doing wrong, or an example
> that works, so that I can see what's going wrong.
>
> Thanks,
> Nik

try...

self.text.yview_moveto(1)

~Sean




More information about the Python-list mailing list