I'm trying to save data to a csv file from fields:
def inserir():
camp1 = str(ed1.get())
camp2 = str(ed2.get())
camp3 = str(ed3.get())
with open("contatos.csv","w") as _file:
_file.write("Nome;tel;endereço")
_file.write(camp1)
_file.write(camp2)
_file.write(camp3)
return None