Don't use create_function()

Don’t use create_function() to initialize widgets, and move widget init
into the main class.
Merge pull request #10 from jbeales/master

Don't use create_function()  props @jbeales