Ejemplo n.º 1
0
    def save(self, save_func):
        DiagramItem.save(self, save_func)
        save_func("matrix", tuple(self.matrix))
        for prop in ("orthogonal", "horizontal"):
            save_func(prop, getattr(self, prop))
        points = []
        for h in self.handles():
            points.append(tuple(map(float, h.pos)))
        save_func("points", points)

        canvas = self.canvas
        c = canvas.get_connection(self.head)
        if c:
            save_func("head-connection", c.connected, reference=True)
        c = canvas.get_connection(self.tail)
        if c:
            save_func("tail-connection", c.connected, reference=True)
Ejemplo n.º 2
0
    def save(self, save_func):
        DiagramItem.save(self, save_func)
        save_func("matrix", tuple(self.matrix))
        for prop in ("orthogonal", "horizontal"):
            save_func(prop, getattr(self, prop))
        points = []
        for h in self.handles():
            points.append(tuple(map(float, h.pos)))
        save_func("points", points)

        canvas = self.canvas
        c = canvas.get_connection(self.head)
        if c:
            save_func("head-connection", c.connected, reference=True)
        c = canvas.get_connection(self.tail)
        if c:
            save_func("tail-connection", c.connected, reference=True)
Ejemplo n.º 3
0
 def save(self, save_func):
     DiagramItem.save(self, save_func)
Ejemplo n.º 4
0
 def save(self, save_func):
     save_func('matrix', tuple(self.matrix))
     for prop in ('width', 'height'):
         self.save_property(save_func, prop)
     DiagramItem.save(self, save_func)
Ejemplo n.º 5
0
 def save(self, save_func):
     DiagramItem.save(self, save_func)
Ejemplo n.º 6
0
 def save(self, save_func):
     save_func('matrix', tuple(self.matrix))
     save_func('height', float(self._handles[1].pos.y))
     if self._combined:
         save_func('combined', self._combined, reference=True)
     DiagramItem.save(self, save_func)
Ejemplo n.º 7
0
 def save(self, save_func):
     save_func("matrix", tuple(self.matrix))
     for prop in ("width", "height"):
         self.save_property(save_func, prop)
     DiagramItem.save(self, save_func)
Ejemplo n.º 8
0
 def save(self, save_func):
     save_func('matrix', tuple(self.matrix))
     save_func('height', float(self._handles[1].pos.y))
     if self._combined:
         save_func('combined', self._combined, reference=True)
     DiagramItem.save(self, save_func)
Ejemplo n.º 9
0
 def save(self, save_func):
     save_func("matrix", tuple(self.matrix))
     save_func("height", float(self._handles[1].pos.y))
     if self._combined:
         save_func("combined", self._combined, reference=True)
     DiagramItem.save(self, save_func)
Ejemplo n.º 10
0
 def save(self, save_func):
     save_func("matrix", tuple(self.matrix))
     save_func("height", float(self._handles[1].pos.y))
     if self._combined:
         save_func("combined", self._combined, reference=True)
     DiagramItem.save(self, save_func)