Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d271e4e

Browse files
author
Stefan Mitic
committed
fix: changed init for KeyEvent
1 parent e09cbb7 commit d271e4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,8 +1486,8 @@ def on_key(event):
14861486
cid = fig.canvas.mpl_connect('key_press_event', on_key)
14871487
"""
14881488
def __init__(self, name, canvas, key, x=0, y=0, guiEvent=None):
1489-
LocationEvent.__init__(self, name, canvas, x, y, guiEvent=guiEvent)
14901489
self.key = key
1490+
LocationEvent.__init__(self, name, canvas, x, y, guiEvent=guiEvent)
14911491

14921492

14931493
def _get_renderer(figure, print_method):

0 commit comments

Comments
 (0)