I have
import tkinter
from tkinter import filedialog
test = filedialog.askopenfilename(initialdir="/", initialfile="file.txt",
multiple=False, title="Please Select Your File")
But when it pops up, there are two windows and not one. There is "Please select Your File", and an empty window with a symbol and the words "tk". How do I get rid of the second window?
Edit to show my question is different:
But, from here it says that withdraw only hides it. Considering that, how would I make the invisible window close? Would it be
tk.Tk().destroy()
After that?