I try to drag a button with the mouse on a panel.
It works fine on win7 (64bits) with wxpython 4.0.6. py3.7.3
On Ubuntu 18.04–16.04 (64bits) with wxpython 4.0.6. GTK2 py3.5 or py3.6, a capturelost event appears, and after my script is out of control.
Only alt+F4 can stop the script.
if I change the code like this
def OnMouseDown(self, event):
it works fine.
How to avert this event ?
Thanks for your reply.
buttonDrag.py (1.64 KB)