title: Does Tkinter come with File Dialogs by default?
body: <p>I've been reading the TKDocs <a href="http://www.tkdocs.com/tutorial/windows.html" rel="nofollow">here</a>, looking at the section Windows and Dialogs. One part provided various ways to save, open and locate files on the hard drive. </p>
  
  <pre><code>from Tkinter import filedialog
  dirname = filedialog.askdirectory()
  </code></pre>
  
  <p>After trying one however, I got the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;pyshell#9&gt;", line 1, in &lt;module&gt;
      a()
    File "&lt;pyshell#8&gt;", line 2, in a
      from Tkinter import filedialog
  ImportError: cannot import name filedialog
  </code></pre>
  
  <p>The code provided in the docs are done with Python 3. I've only modified the <code>import</code> on Tkinter (uppercase vs lowercase).</p>
  
  <p>My question is:</p>
  
  <p>Are filedialogs in <code>Tkinter</code> somewhere else, or are they something that you need to get online, or are they not provided at all? I have python 2.7.6.</p>