if {![exists -proc progressbar]} { proc progressbar {percent} { set pos [expr 118 - $percent / 100.0 * 118] return "\"$percent%\"" } }