Example #1
0
 def __init__(self, block, diagram, text):
     RectangleItem.__init__(self, text)
     BlockItem.__init__(self, block, diagram)
     self.port.connectable = False
Example #2
0
    def __init__(self, label):
        RectangleItem.__init__(self, label)

        self.port = MorphBoundaryPort(Position((0.,0.)), self)
        self._ports.append(self.port)