def __init__(self, block, diagram, text): RectangleItem.__init__(self, text) BlockItem.__init__(self, block, diagram) self.port.connectable = False
def __init__(self, label): RectangleItem.__init__(self, label) self.port = MorphBoundaryPort(Position((0.,0.)), self) self._ports.append(self.port)