scrollbar

Martin Franklin MFranklin1 at gatwick.westerngeco.slb.com
Thu Apr 17 06:13:07 EDT 2003


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






More information about the Python-list mailing list