@@ -441,15 +441,15 @@ def __del__(self):
441441 # This happens when object has already been deleted
442442 pass
443443
444- def on_active_curve (self , x : float , y : float ) -> None :
444+ def on_active_curve (self , x : float , y : float ) -> tuple [ float , float ] :
445445 """
446446 Callback called when the active curve is moved
447447
448448 Args:
449449 x (float): the x position
450450 y (float): the y position
451451 """
452- curve : CurveItem = self .get_last_active_item (itf .ITrackableItemType )
452+ curve : CurveItem = self .get_last_active_item (itf .ICurveItemType )
453453 if curve :
454454 x , y = curve .get_closest_coordinates (x , y )
455455 return x , y
@@ -549,7 +549,7 @@ def do_pan_view(
549549 self ,
550550 dx : tuple [float , float , float , float ],
551551 dy : tuple [float , float , float , float ],
552- replot : bool = True
552+ replot : bool = True ,
553553 ) -> None :
554554 """
555555 Translate the active axes according to dx, dy axis 'state' tuples
@@ -1683,6 +1683,7 @@ def set_active_item(self, item: itf.IBasePlotItem) -> None:
16831683 self .active_item = item
16841684 if self .active_item is not None :
16851685 if not item .selected :
1686+ print (f"Selecting item { item } " )
16861687 self .select_item (self .active_item )
16871688 self ._active_xaxis = item .xAxis ()
16881689 self ._active_yaxis = item .yAxis ()
0 commit comments