title: Python + pygtk generate table of checkboxes from database
body: <p>I'm working on a project were I want to load data from a MySQL database and display it in a PyGTK application for easy overview and configuration. My goal is for the program to automaticly add new rows depending on the database contents, ie. if I add a new command to the database, I should not need to make any changes to my GTK-application.</p>
  
  <p>This is my testing database:</p>
  
  <pre><code>+----+----------+---------+----+--------+
  | id | name     | enabled | op | desc   |
  +----+----------+---------+----+--------+
  |  1 | !help    |       1 |  0 | blabla |
  |  2 | !version |       1 |  1 | blabla |
  |  3 | !tp      |       0 |  1 | blabla |
  +----+----------+---------+----+--------+
  </code></pre>
  
  <p>And I would like to (dynamicly) create a GTK-application that looks something like this:
  <a href="http://i.imgur.com/EMhkz.png" rel="nofollow">http://i.imgur.com/EMhkz.png</a></p>
  
  <p>I've some experience working with python before but not so much GTK, and I'm not sure how to approach this problem. Could someone give me a working example?</p>
  
  <p>Regards Oscar</p>