X-Server freeze with EVT_TREE_END_DRAG event handler

qual@epost.de wrote:

Hi, can anybody explain (or at least reproduce) the following behaviour:
I want to show a modal dialog box inside a EVT_TREE_END_DRAG event handler. But this dialog box is not only modal but it freezes the complete X-server. Seen with X (4.1 and Xvnc) on LINUX, wxPython_2.4.0.1, wxGTK_2.4.0, python_2.3a1 .
After killing the process the X-Server is fully functional again.

Probably the mouse is captured during the drag and isn't released until the after the EVT_TREE_END_DRAG event completes. Since you block that handler from returning it can't reelase the mouse, and so nothing can get the mouse events.

Probably what you want to do instead is show your dialog after the drag operation completes. Using wxCallAfter is an easy way to do this.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!