when i write in the execution's entry i want this to be saved in another text file
how ?
and this is my code
from tkinter import ttk
from tkinter import *
root = Tk()
label1=ttk.Label(root,text="Type your message : ",font="classic")
label1.pack()
entry1=ttk.Entry(root,width=70)
entry1.pack()
button=ttk.Button(root,text="Send",padding=7,cursor="hand2")
button.pack()
def Bclick () :
entry1.delete(0,END)
print("sent")
button.config(command=Bclick)
file = input("yo :")
root.mainloop()
with open('text','w') as myfile :
myfile.write(file)