title: NameError: name 'tkFileDialog' is not defined
body: <p>I'm trying to use Tkinter and get the user to choose a certain file. My code looks like this (I'm just starting out with Tkinter)</p>
  
  <pre><code>from Tkinter import *
  from tkFileDialog import *
  
  
  root = Tk()
  
  root.wm_title("Pages to PDF")
  root.wm_iconbitmap('icon.ico')
  w = Label(root, text="Please choose a .pages file to convert.") 
  y = tkFileDialog.askopenfilename(parent=root)
  y.pack()
  w.pack()
  
  root.mainloop()
  </code></pre>
  
  <p>When I run the program, I get an error that says:</p>
  
  <pre><code>NameError: name 'tkFileDialog' is not defined
  </code></pre>
  
  <p>I've tried it with a few configurations I found online. None of them have worked; but this is the same basic error every time. How can I fix this?</p>