Tkinter get() help | Sololearn: Learn to code for FREE!

+1

Tkinter get() help

How do I get the entry in a textbox of a user

5/28/2019 1:18:06 PM

Joseph Ojo

3 Answers

New Answer

+1

ᴍᴏᴅᴜs ᴛᴏʟʟᴇɴs I'm talking about textbox widget e = Text ()

0

Maybe I don't understand, but i just want to help: s is user text, e is Entry widget and L - Label widget. Predefined. The function is called by the button. def btn(): s = e.get() L["text"] = str(s)

0

Oh ok. sent is variable for user text, tx - textbox widget. def btn(): sent = tx.get('0.0', END) sent = str(sent)