LINUX.ORG.RU

История изменений

Исправление ei-grad, (текущая версия) :

class PLine(...):
    def __init__(self, x1, x2, y1, y2, thickness, color):
        self.x1 = x1
        ...

    def get_xml(self):
        e = Element('line')
        e.set('x1', self.x1)
        ...
        return e

Исправление ei-grad, :

class PLine(...):
    def __init__(self, x1, x2, y1, y2, thickness, color):
        self.x1 = x1
        ...

    def get_xml(self):
        e = Element('line')
        e.set('x1') = self.x1
        ...
        return e

Исходная версия ei-grad, :

class PLine(...):
    def __init__(self, x1, x2, y1, y2, thickness, color):
        self.x1 = x1
        ...

    def get_xml(self):
        e = Element('line')
        e.set('x1') = x1
        ...
        return e