When I bind a subroutine to the <Button-1> event for a widget, the subroutine is also called when I double-click on the widget.
Is there a way my subroutine can tell that it's been called with a double-click?
I would like to do something slightly different if it's a double-click, but the subroutine has about 40 lines of code, of which only one line differs if it's a double-click. I do not want to make duplicate code or break one subroutine into multiple subs with callbacks just to define the double-click as a separate event.
In reply to Tk event bindings - single vs. double click by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |