update tkinter imports and format files
update widget.py