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


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


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


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)


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