Implement Recipe #2 for wxPython instead of Tkinter.
Implement Recipe #2 for PyQt instead of Tkinter.
Implement Recipe #2 for [GUI library of your choice] instead of Tkinter.