def update_geometry(self):
        """
        Updates the Widget geometry.

        :return: Method success.
        :rtype: bool
        """

        self.setGeometry(self.__editor.contentsRect().left(),
                         self.__editor.contentsRect().top(),
                         self.get_width(),
                         self.__editor.contentsRect().height())
        return True
def update_geometry ( self ) : self . setGeometry ( self . __editor . contentsRect ( ) . left ( ) , self . __editor . contentsRect ( ) . top ( ) , self . get_width ( ) , self . __editor . contentsRect ( ) . height ( ) ) return True
Updates the Widget geometry.

        :return: Method success.
        :rtype: bool