Tkinter Event Binding Double-click

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tuvas

    #1

    Tkinter Event Binding Double-click

    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!

  • James Stroud

    #2
    Re: Tkinter Event Binding Double-click

    Tuvas wrote:[color=blue]
    > 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!
    >[/color]

    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

    Comment

    Working...