8000 MEP22 first draft (DO NOT MERGE) by fariza · Pull Request #2740 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

MEP22 first draft (DO NOT MERGE) #2740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
bug fix
  • Loading branch information
fariza committed Jan 22, 2014
commit 560868a551645626f64449fbe64b4c9dd3e2fb49
1 change: 1 addition & 0 deletions examples/user_interfaces/navigation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import matplotlib
matplotlib.use('GTK3Cairo')
#matplotlib.rcParams['toolbar'] = 'None'
import matplotlib.pyplot as plt

fig = plt.figure()
Expand Down
3 changes: 1 addition & 2 deletions lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -3046,7 +3046,6 @@ def _get_cls_to_instantiate(self, callback_class):
return callback_class

def _key_press(self, event):

if event.key is None:
return

Expand All @@ -3055,7 +3054,7 @@ def _key_press(self, event):
instance = self._get_instance(self._toggled)
if self.keypresslock.isowner(instance):
instance.key_press(event)
return
return

name = self._keys.get(event.key, None)
if name is None:
Expand Down
0