File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2074,9 +2074,12 @@ def visible(self, visible):
2074
2074
2075
2075
def clear (self ):
2076
2076
"""Clear the selection and set the selector ready to make a new one."""
2077
+ self ._clear_without_update ()
2078
+ self .update ()
2079
+
2080
+ def _clear_without_update (self ):
2077
2081
self ._selection_completed = False
2078
2082
self .set_visible (False )
2079
- self .update ()
2080
2083
2081
2084
@property
2082
2085
def artists (self ):
@@ -3094,12 +3097,10 @@ def _release(self, event):
3094
3097
# either x or y-direction
3095
3098
minspanxy = (spanx <= self .minspanx or spany <= self .minspany )
3096
3099
if (self ._drawtype != 'none' and minspanxy ):
3097
- for artist in self .artists :
3098
- artist .set_visible (False )
3099
3100
if self ._selection_completed :
3100
3101
# Call onselect, only when the selection is already existing
3101
3102
self .onselect (self ._eventpress , self ._eventrelease )
3102
- self ._selection_completed = False
3103
+ self ._clear_without_update ()
3103
3104
else :
3104
3105
self .onselect (self ._eventpress , self ._eventrelease )
3105
3106
self ._selection_completed = True
You can’t perform that action at this time.
0 commit comments