(self)
return QRectF(x, y, length, length)
Get the rectangle attributes requrired to draw item.

        Compute the QRectF that a QGraphicsRect needs to be rendered with the
        data passed down in the constructor.
Get the rectangle attributes requrired to draw item.
Get the rectangle attributes requrired to draw item .
def _get_rect_attributes(self):
        """Get the rectangle attributes requrired to draw item.

        Compute the QRectF that a QGraphicsRect needs to be rendered with the
        data passed down in the constructor.

        """
        center, length, _ = self.tree_node.square
        x = center[0] - length / 2
        y = center[1] - length / 2
        return QRectF(x, y, length, length)
def _get_rect_attributes ( self ) : center , length , _ = self . tree_node . square x = center [ 0 ] - length / 2 y = center [ 1 ] - length / 2 return QRectF ( x , y , length , length )