Fixed Tcl/Tk Errors

Removed use of deprecated Tcl/Tk calls