예제 #1
0
파일: system.py 프로젝트: arne-cl/Dimscape
	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
파일: system.py 프로젝트: arne-cl/Dimscape
 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
파일: system.py 프로젝트: arne-cl/Dimscape
	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
파일: system.py 프로젝트: arne-cl/Dimscape
	def placeChildren(self, space):
		TextCell.placeChildren(self, space)
		self.getChild().setBrush(QColor("red"))
예제 #5
0
파일: system.py 프로젝트: arne-cl/Dimscape
	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
파일: system.py 프로젝트: arne-cl/Dimscape
 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
파일: system.py 프로젝트: arne-cl/Dimscape
 def placeChildren(self, space):
     TextCell.placeChildren(self, space)
     self.getChild().setBrush(QColor("red"))
예제 #8
0
파일: system.py 프로젝트: arne-cl/Dimscape
 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