If have this piece of code:
import Tkinter as tk import tkFileDialog menu = tk.Tk() res = tkFileDialog.askopenfilename() # un-/comment this line label = tk.Labe
askopenfilenamehas it's own event loop. The programm stops, until you selected a filename, and continues afterwards.
askopenfilename