@@ -74,7 +74,7 @@ def __init__(
7474
7575 def info_callback (annotation : AnnotatedShape ) -> str :
7676 """Return information on annotation"""
77- return annotation .get_infos ()
77+ return annotation .get_info ()
7878
7979 self .info_callback = info_callback
8080 self .shape : AbstractShape = self .create_shape ()
@@ -231,11 +231,11 @@ def get_text(self) -> str:
231231 text += "<br>"
232232 text += f"<i>{ subtitle } </i>"
233233 if self .area_computations_visible :
234- infos = self .info_callback (self )
235- if infos :
234+ info = self .info_callback (self )
235+ if info :
236236 if text :
237237 text += "<br>"
238- text += infos
238+ text += info
239239 return text
240240
241241 def x_to_str (self , x : float ) -> str :
@@ -304,7 +304,7 @@ def get_tr_size_str(self):
304304 xs , ys = self .get_tr_size ()
305305 return f"{ self .x_to_str (xs )} x { self .y_to_str (ys )} "
306306
307- def get_infos (self ) -> str :
307+ def get_info (self ) -> str :
308308 """Get informations on current shape
309309
310310 Returns:
@@ -525,7 +525,7 @@ def get_tr_position(self):
525525 xt , yt = self .apply_transform_matrix (* self .shape .points [0 ])
526526 return xt , yt
527527
528- def get_infos (self ) -> str :
528+ def get_info (self ) -> str :
529529 """Get informations on current shape
530530
531531 Returns:
@@ -593,7 +593,7 @@ def set_label_position(self):
593593 self .label .set_pos (* compute_center (x1 , y1 , x2 , y2 ))
594594
595595 # ----AnnotatedShape API-----------------------------------------------------
596- def get_infos (self ) -> str :
596+ def get_info (self ) -> str :
597597 """Get informations on current shape
598598
599599 Returns:
@@ -754,7 +754,7 @@ def get_tr_center(self) -> tuple[float, float]:
754754 """Return shape center coordinates after applying transform matrix"""
755755 return self .shape .get_center ()
756756
757- def get_infos (self ) -> str :
757+ def get_info (self ) -> str :
758758 """Get informations on current shape
759759
760760 Returns:
@@ -820,7 +820,7 @@ def get_tr_size(self):
820820 """Return shape size after applying transform matrix"""
821821 return compute_rect_size (* self .get_transformed_coords (0 , 2 ))
822822
823- def get_infos (self ) -> str :
823+ def get_info (self ) -> str :
824824 """Get informations on current shape
825825
826826 Returns:
@@ -912,7 +912,7 @@ def get_tr_size(self):
912912 return dx , dy
913913
914914 # ----AnnotatedShape API-----------------------------------------------------
915- def get_infos (self ) -> str :
915+ def get_info (self ) -> str :
916916 """Get informations on current shape
917917
918918 Returns:
@@ -1033,7 +1033,7 @@ def get_tr_size(self):
10331033 dx , dy = dy , dx
10341034 return dx , dy
10351035
1036- def get_infos (self ) -> str :
1036+ def get_info (self ) -> str :
10371037 """Get informations on current shape
10381038
10391039 Returns:
@@ -1064,7 +1064,7 @@ def get_tr_diameter(self):
10641064 return compute_distance (* self .get_transformed_coords (0 , 1 ))
10651065
10661066 # ----AnnotatedShape API-------------------------------------------------
1067- def get_infos (self ) -> str :
1067+ def get_info (self ) -> str :
10681068 """Get informations on current shape
10691069
10701070 Returns:
0 commit comments