Tkinter Event Binding Double-click

T

Tuvas

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!
 
J

James Stroud

Tuvas said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top