#3 Error: megawidget initialization error: expected integer but got "--1"

open
nobody
None
5
2014-05-25
2014-05-25
No

Hi,
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:
tk::unsupported::ExposePrivateCommand tkCancelRepeat
in widget.tcl

kind regards
Bernhard

1 Attachments

Discussion