filedialog, tkinter and opening files
The exception you get is telling you filedialog is not in your namespace. filedialog (and btw messagebox) is a tkinter module, so it is not imported just with from tkinter import * you should use for example: or or So this would do for your browse button: