Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7d06ad commit 5f64b1aCopy full SHA for 5f64b1a
1 file changed
lib/matplotlib/blocking_input.py
@@ -161,6 +161,10 @@ def key_event(self):
161
'''
162
163
event = self.events[-1]
164
+ if event.key is None:
165
+ # at least in mac os X gtk backend some key returns None.
166
+ return
167
+
168
key = event.key.lower()
169
170
if key in ['backspace', 'delete']:
@@ -382,10 +386,6 @@ def button3(self,event):
382
386
broken contour - once humpty-dumpty is broken, he can't be put
383
387
back together. In inline mode, this does nothing.
384
388
"""
385
- # 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)
389
390
if self.inline:
391
pass
0 commit comments