Added the tk loop and an example widget