def placeChildren(self, space): TextCell.placeChildren(self, space) msg, fun, args = self.data if callable(fun): self.execute = lambda: fun(*args) else: self.execute = lambda: 0
def __init__(self, cellId, data=None, cons=None, props=None): msg = (data and data[0]) or "" TextCell.__init__(self, cellId, msg, cons, props, editable=False) self._data = data self.execute = None
def placeChildren(self, space): TextCell.placeChildren(self, space) self.getChild().setBrush(QColor("red"))
def __init__(self, typeName, cid, data, cons=None, props=None): msg = "\'" + typeName + "\'" + " has not be registered with the type system." TextCell.__init__(self, cid, msg, cons, props, editable=False) self.typeName = typeName self._data = data