title: TKInter Python checkbutton state
body: <p>I am trying to do some work on a text file if certain checkbuttons are checked.</p>
  
  <pre><code>"Populate CheckBoxes"
  Label(master, text="Pick at least one index:").grid(row=4, column=1)
  Checkbutton(master, text="Short",variable=var1).place(x=5,y=60)
  Checkbutton(master, text="Standard",variable=var2).place(x=60,y=60)
  Checkbutton(master, text="Long",variable=var3).place(x=130,y=60)
  </code></pre>
  
  <p>Calling </p>
  
  <pre><code>print("Short: %d,\nStandard: %d,\nLong: %d" % (var1.get(), var2.get(), 
        var3.get()))
  </code></pre>
  
  <p>prints out 0 or 1 for each variable but when I am trying to use that value to do something it does'nt seem to call the code.</p>
  
  <pre><code>if var2.get(): &lt;--- does this mean if = 1?
      Do something
  </code></pre>