title: Python Tkinter - .py file doesn't work when double clicked
body: <p>I am running Windows 7 and have Python 3.3 64 bit installed. I seem to have a problem importing the tkinter module, I can import it fine through the python IDLE and it will work, but when I save the .py file and double click it, a cmd window will open and say:</p>
  
  <pre><code>Traceback (most recent call last):
  File "C:Users\username\Desktop\g.py", line 3, in &lt;module&gt;
  from tkinter import *
  ImportError: No module named tkinter
  </code></pre>
  
  <p>I have tried the following:</p>
  
  <ol>
  <li><p>I have tried <code>import tkinter</code>, <code>from tkinter import *</code>, and <code>import tkinter as tk</code> and they don't seem to work when the <code>.py</code> file is opened directly (double clicked).</p></li>
  <li><p>I also double checked the path variable and it was set correctly.</p></li>
  <li><p>I uninstalled python and reinstalled it.</p></li>
  <li><p>I checked to see if tkinter is in the folder C:\Python33\Lib\, and it is.</p></li>
  <li><p>I do have a <code>mainloop()</code> in my program.</p></li>
  <li><p>In my program, tkinter is all lowercase.</p></li>
  <li><p>I tried a lot of solutions online from other posts, and they didn't work for me.</p></li>
  </ol>
  
  <p>The top of my code is:</p>
  
  <pre><code>import sys
  
  from tkinter import *
  </code></pre>
  
  <p>I don't know what I am missing, any suggestions?</p>