My program uses tkinter.asksaveasfilename function to save a text into another location but when user opens save as dialog, tkinter's empty square window also pops-up. My program works on console so I don't need the tkinter window.
I searched the web and stackoverflow but only found root.withdraw funtion to hide tkinter window but when I use it before asksaveasfilename function, save as dialog never pops up. If I use root.withdraw after asksaveasfilename function, square empty tkinter window closes after user closes the save as dialog.
Is there a way to hide tkinter window when asksaveasfilename function is active?