def METHOD_NAME(self, svg):
    """
    Import element information from SVG
    """
    svg = ET.fromstring(svg)
    width = float(svg.get("width", self.rect().width()))
    height = float(svg.get("height", self.rect().height()))
    self.setRect(0, 0, width, height)
    pen = QtGui.QPen()
    brush = QtGui.QBrush(QtCore.Qt.SolidPattern)
    if len(svg):
        pen = self._penFromSVGElement(svg[0])
        if svg[0].get("fill"):
            new_color = colorFromSvg(svg[0].get("fill"))
            color = brush.color()
            color.setBlue(new_color.blue())
            color.setRed(new_color.red())
            color.setGreen(new_color.green())
            brush.setColor(color)
        if svg[0].get("fill-opacity"):
            color = brush.color()
            color.setAlphaF(float(svg[0].get("fill-opacity")))
            brush.setColor(color)
    self.setPen(pen)
    self.setBrush(brush)
    self.update()