title: tKinter How disable the Entry while checkbutton is unchecked and enable it while the checkbutton is checked
body: <p>from tkinter import *
  window=Tk()</p>
  
  <p>nac = {}
  ent = {}</p>
  
  <p>for i in range(10):
      de = IntVar()
      nac[i]=IntVar()</p>
  
  <pre><code>na=Checkbutton(window, text='%s' % (i), borderwidth=1,variable = 
  nac[i], onvalue = 1, offvalue = 0,command=lambda e=ent, 
  v=nac[i]:naccheck(e,v))
  na.grid(row=i, column=0)
  ent[i]=Entry(window,textvariable=de, state = DISABLED)
  ent[i].grid(column=1,row=i,padx=20)
  </code></pre>
  
  <p>window.mainloop()</p>