Tkinter Text widget get()

A

Alex Bryan

Hey guys. I am having trouble understanding the get() method from the
Tkinter Text() widget. It isn't like the entry.get() one I am used to.
I know you have to put tags in, or at least I read. I tried this but
it didn't work. I think I was putting the tags in wrong but I am not
sure. I just need an example. So if someone could maybe modify this
code to get EVERYTHING inside the text widget.

text = Text(parent)
text.pack()

text.insert(END, "I am text!")

Of course, I will have much more text, but I still want to get
everything in the box.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,816
Latest member
nipsseyhussle

Latest Threads

Top