I have a simple Tkinter program that has a button and an entry. Now, how do I run code from the entry?
For example:
Entry -> print 'Hello!'
Button -> Run the entry command

Something like this can do ...

s = 'print "Hello!"'
exec(s)