From: <and...@ti...> - 2005-03-16 16:57:44
|
Hello John and NG, >I answered this question before at > > http://sourceforge.net/mailarchive/message.php?msg_id=3D11115023 > Probably I did not make myself clear. >In a nutshell, do not manually bind 'g' to toggle the grid. This >already happens by default in matplotlib 0.72. I am NOT manually binding the "g" key! I have NO key_press_event on my ro= utines. Similarly, the examples: - embedding_in_wx.py - embedding_in_wx2.py - wxcursor_demo.py The is NOT any key_press_event. So there is no manually binding of char events (in my understanding). Moreover, I can click many times in the WX window (as you suggested), but the binding of the "g" char is never activ= ated on the following demos: - embedding_in_wx2.py - wxcursor_demo.py For the embedding_in_wx.py demo, you are right, John. You have to click on the WX window in order to get the "g" behavior, that works. I don't really know why you need to click on the window to activate the char binding... probably Robin Dunn may have an answer to this problem. Thanks to you all. Andrea. |