def containsRect(self,rect):
        t1 = (self.x <= rect.x) 
        t2 = (self.y <= rect.y)
        t3 = ( (self.x+self.w) >= (rect.x+rect.w) )
        t4 = ( (self.y+self.h) >= (rect.y+rect.h) )
        if( t1 and t2 and t3 and t4):
            return True
        else:
            return False
Multiple fields use this method to decide if the field is
dataset/ETHPy150Open bolme/pyvision/src/pyvision/types/Rect.py/Rect.containsRect--crossover with--dataset/ETHPy150Open mitsuhiko/fungiform/fungiform/forms.py/Field.empty_as_item