8000 fixed typos from last commit · matplotlib/matplotlib@567f0bc · GitHub
[go: up one dir, main page]

Skip to content

Commit 567f0bc

Browse files
committed
fixed typos from last commit
1 parent 6160864 commit 567f0bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/widgets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ def _keypress(self, event):
799799
if key == "enter":
800800
self._notify_submit_observers()
801801

802-
def begin_typing(x):
802+
def begin_typing(self, x):
803803
self.capturekeystrokes = True
804804
#disable command keys so that the user can type without
805805
#command keys causing figure to be saved, etc
@@ -813,7 +813,7 @@ def begin_typing(x):
813813
self.cursor_index = len(self.text)
814814
self._rendercursor()
815815

816-
def stop_typing():
816+
def stop_typing(self):
817817
notifysubmit = False
818818
# because _notify_submit_users might throw an error in the
819819
# user's code, we only want to call it once we've already done
@@ -842,7 +842,7 @@ def _click(self, event):
842842
if event.canvas.mouse_grabber != self.ax:
843843
event.canvas.grab_mouse(self.ax)
844844
if not(self.capturekeystrokes):
845-
self.begin_typing(exent.x)
845+
self.begin_typing(event.x)
846846

847847
def _motion(self, event):
848848
if self.ignore(event):

0 commit comments

Comments
 (0)
0