示例#1
0
 def delete(self):
     """Layout group deletion
     """
     LayoutManager.getSingleton().removeLayoutGroup(self)
     import time
     self.lock.acquire()
     self.deleted = True        
     self.objects = None
     self.lock.release()
示例#2
0
   def __init__(self):
       """Constructor
       @param _objects: list of group objects
       @type _object: list  
       """
       self.lock = thread.allocate_lock()  # lock object for multithreading layout
       
       self.objects = []   # list of group objects   
       
       self.need_layout = False
       
 
       # callbacks
       self.eventStart = None
       self.eventFinish = None
       self.eventOrder = None
       
       self.deleted = False
       
       self.playing = True 
       
       # appending to layout manager
       LayoutManager.getSingleton().addLayoutGroup(self)