title: Hide console for Tkinter app on OSX
body: <p>I'm trying to hide the Terminal when I launch a GUI Tkinter based app, but when I double click the app.py file on OSX, the Terminal window appears.  I've tried changing the extension to .pyw and tried launching it with /usr/bin/pythonw, but no matter what, the Terminal window still appears.  </p>
  
  <p>I've even tried adding the try/except below, but when I run it I get the error: 'invalid command name "console"' in the Terminal window that appears.  </p>
  
  <pre><code>from Tkinter import *
  
  class MainWindow(Tk):
      def __init__(self):
          Tk.__init__(self)
          try:
              self.tk.call('console', 'hide')
          except TclError, err:
             print err
  
  win = MainWindow()
  win.mainloop()
  </code></pre>
  
  <p>I haven't been able to find any way to hide the Terminal window from appearing.  Anybody got any ideas?</p>