Add more documentation to example program widgets.py