title: Boolean Variable in TKinter 8.5
body: <p>I did this inside the python shell:</p>
  
  <pre><code>from Tkinter import *
  
  v = BooleanVar()
  </code></pre>
  
  <p>But I got the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;pyshell#52&gt;", line 1, in &lt;module&gt;
      v = BooleanVar()
    File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 320, in __init__
      Variable.__init__(self, master, value, name)
    File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 185, in __init__
      self._tk = master.tk
  AttributeError: 'NoneType' object has no attribute 'tk'
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>And then while just playing around trying to make it work I tried this:</p>
  
  <pre><code>v = BooleanVar
  </code></pre>
  
  <p>And this worked.</p>
  
  <p>So I went on to do the next logical thing, checking if the variable has been initialised and got this:</p>
  
  <pre><code>&gt;&gt;&gt; v
  &lt;class Tkinter.BooleanVar at 0xb6f666bc&gt;
  </code></pre>
  
  <p>Then I tried to initialise with the value <code>True</code> and for that I used the <code>set</code> method:</p>
  
  <pre><code>v.set(True)
  </code></pre>
  
  <p>For which I got the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;pyshell#63&gt;", line 1, in &lt;module&gt;
      v.set(True)
  TypeError: unbound method set() must be called with BooleanVar instance as first argument (got bool instance instead)
  </code></pre>
  
  <p><strong>What</strong> is going on?</p>
  
  <p><strong>Please</strong> help me with this issue</p>
  
  <p><strong>Goal</strong> I want to use this as the variable associated with a check button in a menu</p>
  
  <p><strong>specs</strong> Linux mint 14, python 2.7, Tkinter 8.5</p>