Tkinter Event Binding Double-click

James Stroud jstroud at ucla.edu
Tue Feb 21 18:13:33 EST 2006


Tuvas wrote:
> I am trying to execute a function with a tkinter event binding double
> click. With 2 mouse clicks done quickly, the function should happen,
> otherwise, it should not. However, I am noticing that the time that the
> event binding of a double-click is quite long, on the order of a second
> or so. I am double-clicking twice in a second, and the function is
> being executed 3 times, and not just 2. I want to know, is this
> controlled by the OS, or by Tkinter? And if by tkinter, is there a way
> to change it, and how so? Thanks!
> 

You might need to provide more info and some relevant code. I bind to 
double click all of the time and it works fine.

James



More information about the Python-list mailing list