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 @@ -2072,9 +2072,12 @@ def visible(self, visible):
2072
2072
2073
2073
def clear (self ):
2074
2074
"""Clear the selection and set the selector ready to make a new one."""
2075
+ self ._clear_without_update ()
2076
+ self .update ()
2077
+
2078
+ def _clear_without_update (self ):
2075
2079
self ._selection_completed = False
2076
2080
self .set_visible (False )
2077
- self .update ()
2078
2081
2079
2082
@property
2080
2083
def artists (self ):
@@ -3092,12 +3095,10 @@ def _release(self, event):
3092
3095
# either x or y-direction
3093
3096
minspanxy = (spanx <= self .minspanx or spany <= self .minspany )
3094
3097
if (self ._drawtype != 'none' and minspanxy ):
3095
- for artist in self .artists :
3096
- artist .set_visible (False )
3097
3098
if self ._selection_completed :
3098
3099
# Call onselect, only when the selection is already existing
3099
3100
self .onselect (self ._eventpress , self ._eventrelease )
3100
- self ._selection_completed = False
3101
+ self ._clear_without_update ()
3101
3102
else :
3102
3103
self .onselect (self ._eventpress , self ._eventrelease )
3103
3104
self ._selection_completed = True
You can’t perform that action at this time.
0 commit comments