File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -799,7 +799,7 @@ def _keypress(self, event):
799
799
if key == "enter" :
800
800
self ._notify_submit_observers ()
801
801
802
- def begin_typing (x ):
802
+ def begin_typing (self , x ):
803
803
self .capturekeystrokes = True
804
804
#disable command keys so that the user can type without
805
805
#command keys causing figure to be saved, etc
@@ -813,7 +813,7 @@ def begin_typing(x):
813
813
self .cursor_index = len (self .text )
814
814
self ._rendercursor ()
815
815
816
- def stop_typing ():
816
+ def stop_typing (self ):
817
817
notifysubmit = False
818
818
# because _notify_submit_users might throw an error in the
819
819
# user's code, we only want to call it once we've already done
@@ -842,7 +842,7 @@ def _click(self, event):
842
842
if event .canvas .mouse_grabber != self .ax :
843
843
event .canvas .grab_mouse (self .ax )
844
844
if not (self .capturekeystrokes ):
845
- self .begin_typing (exent .x )
845
+ self .begin_typing (event .x )
846
846
847
847
def _motion (self , event ):
848
848
if self .ignore (event ):
You can’t perform that action at this time.
0 commit comments