title: Mac OS X: _tkinter.TclError: no display name and no $DISPLAY environment variable
body: <p>As I said, I have installed Python 3.3 from Macports. </p>
  
  <p>Now when I do a spotlight search for Idle </p>
  
  <pre><code>Idle -- Python 3.3
  </code></pre>
  
  <p>shows up. However when I try to click it, nothing happens. No error is shown or anything- it plain does not start.</p>
  
  <p>What do you think might be wrong? </p>
  
  <p>It is reminiscent of this question: <a href="https://stackoverflow.com/questions/8366401/python-3-0-idle-wont-open-it-just-bounces-in-the-dock">Python 3.0 - Idle wont open. It just bounces in the dock</a></p>
  
  <p>The difference is that I get no error messages and am using 3.3</p>
  
  <hr>
  
  <p>Update:</p>
  
  <p>Now I tried setting Py3.3 as my main version using macports select. Then I tried opening IDLE from the console and got the following error message:</p>
  
  <pre><code>  Traceback (most recent call last):
    File "/opt/local/bin/idle", line 5, in &lt;module&gt;
      main()
    File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/idlelib/PyShell.py", line 1421, in main
      root = Tk(className="Idle")
    File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/tkinter/__init__.py", line 1756, in __init__
      self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
  _tkinter.TclError: no display name and no $DISPLAY environment variable
  </code></pre>