ui/BoundingBox.py
def contains(self, pt: QPoint):
        """
        Check if the given point lies within the bounding box
        :param pt: Point to check
        :return: True if point within box, else False
        """
        return self.x() <= pt.x() <= self.x() + self.width and self.y() <= pt.y() <= self.y() + self.height

        Check if the given point lies within the bounding box
        :param pt: Point to check
        :return: True if point within box, else False
        
Check if the given point lies within the bounding box
Check if the given point lies within the bounding box
def contains(self, pt: QPoint):
        return self.x() <= pt.x() <= self.x() + self.width and self.y() <= pt.y() <= self.y() + self.height
def contains ( self , pt : QPoint ) : return self . x ( ) <= pt . x ( ) <= self . x ( ) + self . width and self . y ( ) <= pt . y ( ) <= self . y ( ) + self . height
Check if the given point lies within the bounding box
Check if the given point lies within the bounding box
"""
        Check if the given point lies within the bounding box
        :param pt: Point to check
        :return: True if point within box, else False
        """
True if point within box, else False
True if point within box else False
self
pt
QPoint
Point to check
Point to check