title: How to give Tkinter file dialog focus
body: <p>I'm using OS X.  I'm double clicking my script to run it from Finder.  This script imports and runs the function below.</p>
  
  <p>I'd like the script to present a Tkinter open file dialog and return a list of files selected.</p>
  
  <p>Here's what I have so far:</p>
  
  <pre><code>def open_files(starting_dir):
      """Returns list of filenames+paths given starting dir"""
      import Tkinter
      import tkFileDialog
  
      root = Tkinter.Tk()
      root.withdraw()  # Hide root window
      filenames = tkFileDialog.askopenfilenames(parent=root,initialdir=starting_dir)
      return list(filenames)
  </code></pre>
  
  <p>I double click the script, terminal opens, the Tkinter file dialog opens.  <strong>The problem is that the file dialog is behind the terminal.</strong></p>
  
  <p><strong>Is there a way to suppress the terminal or ensure the file dialog ends up on top?</strong></p>
  
  <p>Thanks,
  Wes</p>