Get data from a Tkinter Text Object

Mark 'Kamikaze' Hughes kamikaze at kuoi.asui.uidaho.edu
Sat Jul 26 07:00:58 EDT 2003


25 Jul 2003 10:36:04 -0700, Mauro Baraldi <mauro.baraldi at bol.com.br>:
> Hello World...

world.hello("Mauro")

> Someone can help me with a Tkinter doubt.
> I need to get some data, from a Tkinter text objetc and write to a variable.

s = self.textarea.get(1, END)

> And, sent to a text objetc some data from a var.

self.textarea.insert(END, s)

-- 
 <a href="http://kuoi.asui.uidaho.edu/~kamikaze/"> Mark Hughes </a>
"The computer is incredibly fast, accurate, and stupid.
 Man is unbelievably slow, inaccurate, and brilliant.
 The marriage of the two is a force beyond calculation." -Leo Cherne




More information about the Python-list mailing list