@@ -491,7 +491,7 @@ def _move_graphic(self, move_info: MoveInfo):
491
491
xmin , xmax , ymin , ymax = move_info .start_selection
492
492
493
493
# move entire selector if source is fill
494
- if self . _move_info .source == self .fill :
494
+ if move_info .source == self .fill :
495
495
# Limit the delta to avoid weird resizine behavior
496
496
min_deltax = self .limits [0 ] - xmin
497
497
max_deltax = self .limits [1 ] - xmax
@@ -514,22 +514,22 @@ def _move_graphic(self, move_info: MoveInfo):
514
514
ymin_new = min (ymin + deltay , ymax )
515
515
ymax_new = max (ymax + deltay , ymin )
516
516
517
- if self . _move_info .source == self .vertices [0 ]: # bottom left
517
+ if move_info .source == self .vertices [0 ]: # bottom left
518
518
self ._selection .set_value (self , (xmin_new , xmax , ymin_new , ymax ))
519
- if self . _move_info .source == self .vertices [1 ]: # bottom right
519
+ if move_info .source == self .vertices [1 ]: # bottom right
520
520
self ._selection .set_value (self , (xmin , xmax_new , ymin_new , ymax ))
521
- if self . _move_info .source == self .vertices [2 ]: # top left
521
+ if move_info .source == self .vertices [2 ]: # top left
522
522
self ._selection .set_value (self , (xmin_new , xmax , ymin , ymax_new ))
523
- if self . _move_info .source == self .vertices [3 ]: # top right
523
+ if move_info .source == self .vertices [3 ]: # top right
524
524
self ._selection .set_value (self , (xmin , xmax_new , ymin , ymax_new ))
525
525
# if event source was an edge and selector is resizable, move the edge that caused the event
526
- if self . _move_info .source == self .edges [0 ]:
526
+ if move_info .source == self .edges [0 ]:
527
527
self ._selection .set_value (self , (xmin_new , xmax , ymin , ymax ))
528
- if self . _move_info .source == self .edges [1 ]:
528
+ if move_info .source == self .edges [1 ]:
529
529
self ._selection .set_value (self , (xmin , xmax_new , ymin , ymax ))
530
- if self . _move_info .source == self .edges [2 ]:
530
+ if move_info .source == self .edges [2 ]:
531
531
self ._selection .set_value (self , (xmin , xmax , ymin_new , ymax ))
532
- if self . _move_info .source == self .edges [3 ]:
532
+ if move_info .source == self .edges [3 ]:
533
533
self ._selection .set_value (self , (xmin , xmax , ymin , ymax_new ))
534
534
535
535
def _move_to_pointer (self , ev ):
0 commit comments