Revision: 8112
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8112&view=rev
Author:   leejjoon
Date:     2010-02-06 22:30:12 +0000 (Sat, 06 Feb 2010)

Log Message:
-----------
a minor fix of blocking_input.py

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/blocking_input.py

Modified: trunk/matplotlib/lib/matplotlib/blocking_input.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/blocking_input.py   2010-02-06 21:24:21 UTC 
(rev 8111)
+++ trunk/matplotlib/lib/matplotlib/blocking_input.py   2010-02-06 22:30:12 UTC 
(rev 8112)
@@ -161,6 +161,10 @@
         '''
 
         event = self.events[-1]
+        if event.key is None:
+            # at least in mac os X gtk backend some key returns None.
+            return
+
         key = event.key.lower()
 
         if key in ['backspace', 'delete']:
@@ -382,10 +386,6 @@
         broken contour - once humpty-dumpty is broken, he can't be put
         back together.  In inline mode, this does nothing.
         """
-        # Remove this last event - not too important for clabel use
-        # since clabel normally doesn't have a maximum number of
-        # events, but best for cleanliness sake.
-        BlockingInput.pop(self)
 
         if self.inline:
             pass


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to