Tkinter: Distinguishing different

Fredrik Lundh fredrik at
Wed Jan 1 19:02:10 CET 2003

Tim Daneliuk wrote:
> I have an existing program that binds a feature to:
>          <Control-Double-ButtonRelease3>
> I now want to add a new feature which binds to:
>          <ButtonRelease-3>
> The problem is that the handler for the second is always called even
> when I am pressing the key combination for the first. Obviously, the
> "ButtonRelease-2" is checked by the message dispatcher before the
> Control ... combination is checked.

Not really -- when the *first* click arrives, the dispatcher doesn't know
that another click will arrive some time in the future.

I suggest adding a dummy Control-ButtonRelease3 binding.


More information about the Python-list mailing list