(self)
return self.__central_widget.boundingRect().adjusted(*self.__padding)
Get the bounding box of the central widget.

        If a central widget and padding are set, this method calculates the
        rect containing both of them. This is useful because if the padding was
        added directly onto the widget, the padding would be rescaled as well.

        If the central widget is not set, return the scene rect instead.

        Returns
        -------
        QtCore.QRectF
Get the bounding box of the central widget.
Get the bounding box of the central widget .
def central_widget_rect(self):
        """Get the bounding box of the central widget.

        If a central widget and padding are set, this method calculates the
        rect containing both of them. This is useful because if the padding was
        added directly onto the widget, the padding would be rescaled as well.

        If the central widget is not set, return the scene rect instead.

        Returns
        -------
        QtCore.QRectF

        """
        if self.__central_widget is None:
            return self.scene().itemsBoundingRect().adjusted(*self.__padding)
        return self.__central_widget.boundingRect().adjusted(*self.__padding)
def central_widget_rect ( self ) : if self . __central_widget is None : return self . scene ( ) . itemsBoundingRect ( ) . adjusted ( * self . __padding ) return self . __central_widget . boundingRect ( ) . adjusted ( * self . __padding )