
from tkinter import*
from tkinter import ttk


root = Tk()
entry = ttk.Entry(root,width=30)
entry.pack()
button=ttk.Button(root,text="click me!")
button.pack()
button=ttk.Button(root,text="click me!")
button.pack()
button=ttk.Button(root,text="click me!")
button.pack()

def BuClick():
    print(entry.get())
    entry.delete(0,3)
    # entry.insert(0,"button clicked")

button.config(command=BuClick())



root.mainloop()






2f4ba202d856f13f902301aac39eaf430b4a4e94
<mask token>


def BuClick():
    print(entry.get())
    entry.delete(0, 3)


<mask token>

<mask token>
entry.pack()
<mask token>
button.pack()
<mask token>
button.pack()
<mask token>
button.pack()


def BuClick():
    print(entry.get())
    entry.delete(0, 3)


button.config(command=BuClick())
root.mainloop()

<mask token>
root = Tk()
entry = ttk.Entry(root, width=30)
entry.pack()
button = ttk.Button(root, text='click me!')
button.pack()
button = ttk.Button(root, text='click me!')
button.pack()
button = ttk.Button(root, text='click me!')
button.pack()


def BuClick():
    print(entry.get())
    entry.delete(0, 3)


button.config(command=BuClick())
root.mainloop()

from tkinter import *
from tkinter import ttk
root = Tk()
entry = ttk.Entry(root, width=30)
entry.pack()
button = ttk.Button(root, text='click me!')
button.pack()
button = ttk.Button(root, text='click me!')
button.pack()
button = ttk.Button(root, text='click me!')
button.pack()


def BuClick():
    print(entry.get())
    entry.delete(0, 3)


button.config(command=BuClick())
root.mainloop()


from tkinter import*
from tkinter import ttk


root = Tk()
entry = ttk.Entry(root,width=30)
entry.pack()
button=ttk.Button(root,text="click me!")
button.pack()
button=ttk.Button(root,text="click me!")
button.pack()
button=ttk.Button(root,text="click me!")
button.pack()

def BuClick():
    print(entry.get())
    entry.delete(0,3)
    # entry.insert(0,"button clicked")

button.config(command=BuClick())



root.mainloop()





