missive at frontiernet.net
Thu Apr 17 01:22:20 CEST 2003
In article <b7kh3g$51u$1 at nemesis.news.tpi.pl>, zyziu wrote:
> Hello. I made lanChat in Python. I have problem with Text widget. I want to
> text from Entry goes to Text widget and scrollbar goes down, because I can't
> see what write another user. Now I must do it manually. How do it to
> scrollbar goes down automatically? Thanks for answer. Zyziu from Poland.
You should probably be a little bit more specific, and maybe include
some of the code around where you are having the problem.
That said, if this is Tkinter, maybe something here will help:
self.wout = Tkinter.Tk()
self.frame = Tkinter.Frame(self.wout, bg='brown')
self.frame.sc = Tkinter.Scrollbar(self.frame, orient=Tkinter.VERTICAL)
self.frame.tout = Tkinter.Text(self.frame, yscroll=self.frame.sc.set,
self.frame.sc['command'] = self.frame.tout.yview
t = self.c.read_eager().replace('\r','')
This is just bits and pieces of a file I wrote a couple of years ago...
I remember having trouble with the same thing. Hope this helps.
More information about the Python-list