Hi XOTcl friends!
I have found some small incompatibility between XOTcl 1.4 and 1.5 by using XOTclIDE. It considers tk binding
I use code as follow
bind $twin <KeyPress-Tab> [list [self] tabPress]
IDE::TclModeEdit instproc tabPress {} { # ..... return -code break }
the "return -code break" have caused that the event is not propagated more. See more in Tk bind command manual.
It does not work with XOTcl 1.5.2. I use small work around by wrapping XOTcl method in Tcl proc now. XOTcl Method returns a boolean value.
bind $twin <KeyPress-Tab> [list tabPressHandler [self]]
proc tabPressHandler object { if {[$object tabPress]} { return -code break } }
This incompatibility causes bad behavior in XOTclIDE editor. (Code completion and automatic indenting). I plan to ship next XOTclIDE version in some time without this problem.
Artur Trzewik
Artur Trzewik schrieb:
Hi XOTcl friends!
I have found some small incompatibility between XOTcl 1.4 and 1.5 by using XOTclIDE. It considers tk binding ...
the "return -code break" have caused that the event is not propagated more. See more in Tk bind command manual.
It does not work with XOTcl 1.5.2.
Artur, thanks for the report. I have fixed this in my development version and added a test to the regression test suite. For the time being, it looks best to me when you keep the little hack with the tcl proc wrapper.
-gustaf neumann