Nasty mouse event problem with wxPython

Hi,

I’ve hit a problem when using the button_press_event to pop up a wx.MessageBox. After the messagebox is loaded the mouse becomes completely unresponsive (even outside the application) until the application is shut down (by using ALT+F4). I’m making a feature where the user, after right clicking on the figure (after doing some manipulations etc), are requested to answer a question in a message box.

This problem seems only to occur on Linux…

Am I doing something wrong or is this a bug?

I’ve attached the source that demonstrates the problem.

Thanks,
Soren

unresponsive.py (1.49 KB)

I don't know why this happens, but did note that using a "button_release_event" instead seems to work fine.

Mike

S�ren Nielsen wrote:

···

Hi,

I've hit a problem when using the button_press_event to pop up a wx.MessageBox. After the messagebox is loaded the mouse becomes completely unresponsive (even outside the application) until the application is shut down (by using ALT+F4). I'm making a feature where the user, after right clicking on the figure (after doing some manipulations etc), are requested to answer a question in a message box.

This problem seems only to occur on Linux..

Am I doing something wrong or is this a bug?

I've attached the source that demonstrates the problem.

Thanks,
Soren

------------------------------------------------------------------------

------------------------------------------------------------------------------
  ------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA