Sujet : Re: Tkinter button-motion event behaves differently under Windows and Linux
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.pythonDate : 11. Nov 2024, 14:43:34
Autres entêtes
Organisation : Stefan Ram
Message-ID : <drag-20241111144018@ram.dialup.fu-berlin.de>
References : 1
John O'Hagan <
research@johnohagan.com> wrote or quoted:
I'm posting this in case anyone else encounters the same problem
Thanks for dropping that knowledge bomb on me!
I haven't found this documented anywhere and I'm interested to know if
anyone can cast any light on it.
By leveraging grab_set() when you kick off the drag and
grab_release() when you wrap it up, you're golden - the
widget you first clicked keeps hogging all those mouse
events throughout the whole drag shindig, no matter how
wonky the underlying system's event handling gets.