def set_outline(self, color):
        """
        Uses an outline rectangle.

        :param color: Color of the outline rect
        :type color: QtGui.QColor
        """
        self.format.setProperty(QtGui.QTextFormat.OutlinePen,
                                QtGui.QPen(color))
def set_outline ( self , color ) : self . format . setProperty ( QtGui . QTextFormat . OutlinePen , QtGui . QPen ( color ) )
Uses an outline rectangle.

        :param color: Color of the outline rect
        :type color: QtGui.QColor