Tkinter Text widget get()

Discussion in 'Python' started by Alex Bryan, Jul 5, 2008.

  1. Alex Bryan

    Alex Bryan Guest

    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.
    Alex Bryan, Jul 5, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex9968
    Replies:
    0
    Views:
    577
    Alex9968
    Mar 19, 2008
  2. Alex9968
    Replies:
    0
    Views:
    1,510
    Alex9968
    Mar 19, 2008
  3. Frederic Rentsch
    Replies:
    0
    Views:
    234
    Frederic Rentsch
    Jul 8, 2012
  4. Terry Reedy
    Replies:
    15
    Views:
    630
    Frederic Rentsch
    Jul 16, 2012
  5. Frederic Rentsch
    Replies:
    0
    Views:
    426
    Frederic Rentsch
    Jul 9, 2012
Loading...

Share This Page