python - Binding mouse events on 'stop' motion in tkinter python3 -


is possible trigger function when mouse stop moving? example, have scale, , want trigger function when still holding button , stop dragging. used 'buttonrelease-1' had release mouse button able trigger function, it's not want. hope guys can me. thank in advance.

no, can't bind "mouse stopped moving". however, can bind <b1-motion>, , each callback set timer run in future. if mouse hasn't moved within time function called. within function use event_generate generate custom <<mousestopped>> event. if mouse moves before timer expires, reset timer.

you same effect if bound mouse not moving.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -