I am currently using asksaveasfile
to save the file, and it is working fine. The only issue I am having is that I cant get the new file name. I know asksaveasfilename
exists but if I use them both together they will pop up two windows which I dont want to happen. If I try printing the output of asksaveasfile
i get the following:
<_io.TextIOWrapper name='/home/work/newfile.txt' mode='w' encoding='UTF-8'>.
Is there a way I can just get the file name out of this?