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.
|