ui/BoundingBox.py
def check_box_click(self, pt: QPoint):
        """
        Check managed boxes for point containment, process callbacks
        :param pt: Point to process
        :return: None
        """
        selected_box = None
        for box in self.bounding_boxes:
            if box.contains(pt):
                if not selected_box or box.area() < selected_box.area():
                    selected_box = box
        if self.box_click_callback:
            if selected_box:
                self.box_click_callback(selected_box)

        Check managed boxes for point containment, process callbacks
        :param pt: Point to process
        :return: None
        
Check managed boxes for point containment, process callbacks
Check managed boxes for point containment process callbacks
def check_box_click(self, pt: QPoint):
        selected_box = None
        for box in self.bounding_boxes:
            if box.contains(pt):
                if not selected_box or box.area() < selected_box.area():
                    selected_box = box
        if self.box_click_callback:
            if selected_box:
                self.box_click_callback(selected_box)
def check_box_click ( self , pt : QPoint ) : selected_box = None for box in self . bounding_boxes : if box . contains ( pt ) : if not selected_box or box . area ( ) < selected_box . area ( ) : selected_box = box if self . box_click_callback : if selected_box : self . box_click_callback ( selected_box )
Check managed boxes for point containment, process callbacks
Check managed boxes for point containment process callbacks
"""
        Check managed boxes for point containment, process callbacks
        :param pt: Point to process
        :return: None
        """
None
self
pt
QPoint
Point to process
Point to process