No virtual event on Canvas widget

Not sure if it concerns Active State: on Linux Mint 20.1 Cinnamon 4.8.6, Linux Kernel 5.4.0-73-generic, 64 Bit, I found this bug:

Installed Tcl/Tk 8.6.10 using mintinstall, tried to invoke my current project Vectorleaf 0.1, but no reaction on mouse action.

Digging deeper I found that vitual events do not fire on canvas widget.

If I input:

% bind .c <ButtonRelease> “puts released!”

Then on Button press and release “released” appears on console.

If I try this virtual event:

% bind .c <ButtonRelease> “”
% event add <<Click>> <1><ButtonRelease>
% bind .c <<Click>> “puts clicked!”

Then nothing happens on mouse click.

My workaround: removed 8.6.10, installed 8.6.9, and I am happy because my project procedes, but possibly you are not.

Mintinstall will be pulling packaged binaries from the Linux Distro package repository. ActiveTcl is not distributed that way, so you’re seeing a bug in the open source version of Tcl. It might be resolved in 8.6.11, which is available, but might not be packaged by your Distro yet.

1 Like