+ 1
Tkinter get() help
How do I get the entry in a textbox of a user
3 Antworten
+ 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)