File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -790,8 +790,9 @@ def _rendercursor(self):
790
790
self .ax .figure .canvas .draw ()
791
791
792
792
def _notify_submit_observers (self ):
793
- for cid , func in self .submit_observers .items ():
794
- func (self .text )
793
+ if self .eventson :
794
+ for cid , func in self .submit_observers .items ():
795
+ func (self .text )
795
796
796
797
def _release (self , event ):
797
798
if self .ignore (event ):
@@ -849,8 +850,9 @@ def set_val(self, val):
849
850
self ._notify_submit_observers ()
850
851
851
852
def _notify_change_observers (self ):
852
- for cid , func in self .change_observers .items ():
853
- func (self .text )
853
+ if self .eventson :
854
+ for cid , func in self .change_observers .items ():
855
+ func (self .text )
854
856
855
857
def begin_typing (self , x ):
856
858
self .capturekeystrokes = True
You can’t perform that action at this time.
0 commit comments