title: Tkinter -- StringVar() not working correctly
body: <p>While trying to initialize a <code>StringVar()</code> using TkInter I am getting this huge error back. So the error is as follows: </p>
  
  <pre><code>In [160]: from Tkinter import *
  
  In [161]: p = StringVar()
  ---------------------------------------------------------------------------
  AttributeError                            Traceback (most recent call last)
  &lt;ipython-input-161-3e21f17f6e4f&gt; in &lt;module&gt;()
  ----&gt; 1 p = StringVar()
  
  C:\Python27\lib\lib-tk\Tkinter.pyc in __init__(self, master, value, name)
      285         then the existing value is retained.
      286         """
  --&gt; 287         Variable.__init__(self, master, value, name)
      288
      289     def get(self):
  
  C:\Python27\lib\lib-tk\Tkinter.pyc in __init__(self, master, value, name)
      216             master = _default_root
      217         self._master = master
  --&gt; 218         self._tk = master.tk
      219         if name:
      220             self._name = name
  
  AttributeError: 'NoneType' object has no attribute 'tk'
  
  In [162]:
  </code></pre>
  
  <p>Not entirely sure what is going wrong here. I am using A </p>
  
  <p>Windows 7 system, </p>
  
  <p>Python(x,y) version 2.7.5.2</p>
  
  <p>Python 2.7.5</p>
  
  <p>Within the Tkinter.py file: </p>
  
  <pre><code>__version__ = "$Revision: 81008 $" 
  </code></pre>
  
  <p>TkVersion = 8.5</p>
  
  <p>If anyone has any clue as to what is going on, then it will be greatly appreciated ...</p>