Пример #1
0
	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
Пример #2
0
 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
Пример #3
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
Пример #4
0
	def placeChildren(self, space):
		TextCell.placeChildren(self, space)
		self.getChild().setBrush(QColor("red"))
Пример #5
0
	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
Пример #6
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
Пример #7
0
 def placeChildren(self, space):
     TextCell.placeChildren(self, space)
     self.getChild().setBrush(QColor("red"))
Пример #8
0
 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