starting the callTree feature gives the error message:
megawidget initialization error: expected integer but got "--1"
Reason: a "incr xyz -$x;" is called with x = -1
The attached patch corrects the two source lines where this occurs so they calculate the (hopefully) correct result.
Also the problem with tkCancelRepeat is corrected - I added the line: