예제 #1
0
	def newObject(self,obj):
		if pylon.object_new(self.name,obj) or not self.hasObject(obj):
			print "Cannot create object:'",obj,"' in sim:'",self.name,"'"
			return None
		return Object(obj,self.name)
예제 #2
0
파일: objects.py 프로젝트: tarpeyd12/pylon
	def __init__(self,name,simname):
		self.name = name
		self.simname = simname
		
		if not self.check() and pylon.object_new(self.simname,self.name):
			print "Cannot create object:'",self.name,"' in sim:'",self.simname,"'"