I am using at Tkinter tix Checklist in my python script. Whenever an checklist items status is toggled, I want that a callback is invoked.
A checklist is created like this:
cl = CheckList(root, browsecmd=foo, command=bar )
According to documentation browsecmd is invoked when selecting an item in the checklist via clicking or using arrow keys and command is invoked when an item is checked or unchecked via double-click or pressing return-key. If you do a single leftmouse click, then only browsecmd will be invoked, however the item status changes from checked to unchecked or vice versa, too.
Is it possible to change checklist's behaviour in a way that command is also invoked via a single mouse click? Or is it a bug that I can change checked-status of an item via mouse-click and 'command' call is not invoked, but it was supposed to do so.
As far as I know, binding Button-1 event direktly to 'bar' is not an option, because it will not decide between a click on an items checkbox and a click on the collapse/uncollapse buttons of the hlist widget.