scrolltext widget,appending to

Martin Franklin MFranklin1 at gatwick.westerngeco.slb.com
Tue Mar 25 04:03:21 EST 2003


vector wrote:
> Hi
> ref:(pythonwin 2.2.2)newbie
> Im using a scrolltext widget to display the incoming bytes from the 
> seral port. currently the code snip is simply
> siobuf=ser.read(nbr)    #nbr =number of bytes in buffer
> oldbuf=f.terminalIn.get()    #terminalIn is a scrolltext widget
> siobuf=oldbuf+siobuf
> f.terminalIn.settext(siobuf)
> 

If you are tqalking about the Tkinter scrolled text widget then use the
insert method like so:-

f.terminalIn.insert("end", siobuf)


HTH
Martin






More information about the Python-list mailing list