3. Using a messageboxΒΆ
def save_data():
try:
fileD = open("orders.txt","a")
fileD.write("Destination:\n")
fileD.write("%s\n" %destination.get())
fileD.write("Description:\n")
fileD.write("%s\n" %description.get())
fileD.write("Address:\n")
fileD.write("%s\n" %address.get("1.0",END))
destination.set(None)
description.delete(0,END)
address.delete("1.0",END)
except Exception as exception:
app.title('File writing error: %s' %exception)


You have attempted of activities on this page