Force tkinter window topmost
Use wm_attributes and parent=root to force file dialog topmost.
root = tk.Tk()
root.withdraw()
root.wm_attributes('-topmost', 1)
filename = askopenfilename(parent=root)
root.destroy()
Use wm_attributes and parent=root to force file dialog topmost.
root = tk.Tk()
root.withdraw()
root.wm_attributes('-topmost', 1)
filename = askopenfilename(parent=root)
root.destroy()