title: Python Tkinter Grid Checkbox
body: <p>I was wondering if there is an easy way to create a grid of checkboxes using Tkinter. I am trying to make a grid of 10 rows and columns (so 100 checkboxes) so that only two checkboxes can be selected per row.</p>
  
  <p>Edit: I'm using python 2.7 with spyder</p>
  
  <p>What I have so far: </p>
  
  <pre><code>from Tkinter import*
  
  master = Tk()
  master.title("Select Groups")
  
  rows=10
  columns=10
  
  
  for x in range(rows):
      for y in range(columns):
          Label(master, text= "Group %s"%(y+1)).grid(row=0,column=y+1)
          Label(master, text= "Test %s"%(x+1)).grid(row=x+1,column=0)
          Checkbutton(master).grid(row=x+1, column=y+1)
  
  mainloop()
  </code></pre>
  
  <p>I'm trying to use state='Disabled' to grey out a row once two checkboxes have been selected. </p>