scrollbar

zyziu zyziu at interia.pl
Thu Apr 17 14:36:29 EDT 2003


Uzytkownik "Martin Franklin" <MFranklin1 at gatwick.westerngeco.slb.com>
napisal w wiadomosci news:mailman.1050575068.28377.python-list at python.org...
> zyziu wrote:
> > ----- Original Message -----
> > From: "Lee Harr" <missive at frontiernet.net>
> > Newsgroups: comp.lang.python
> > Sent: Thursday, April 17, 2003 1:22 AM
> > Subject: Re: scrollbar
> >
> >
> >
> >>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
> >
>
> <snip>
>
> >
> >     def Pisz(self):
> >          self.dane = self.tekst.get()
> >          self.tekst.delete(0,'end')
> >          if (self.dane<>''):
> >              self.okno.insert('end',strftime("%H:%M:%S")+'\n')
> >              self.okno.insert('end',self.dane+'\n'+'\n')
>
>   A call to yview_pickplace here should do the trick.....
>
> self.okno.yview_pickplace("end")
>
>
> Regards
> Martin
>
>
Thanks everyone for help. I need this pick of code:
self.okno.yview_pickplace("end")
and it works. Thanks once again. Greetings from Poland. Zyziu123






More information about the Python-list mailing list