S
S
shinodaaa2021-10-14 17:52:11
Python
shinodaaa, 2021-10-14 17:52:11

How to make the text entered in the Entry be displayed?

from tkinter import *
from tkinter import messagebox

root = Tk()

root.geometry("500x700")
#entry
text1 = Entry(root)
#buttons and other
check = Button( text = 'Повторить')
#packer
text1.pack()
check.pack()
#bind
check.bind('<Button-1', check)

#function
def check( event ):
    L = text1.get()

    if L:
        messagebox.showinfo('Success', text1)    

root.mainloop()


How to display the text received text1 = Entry(root) here below??

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question