Exemplo n.º 1
0
 def addSetZoneCompleteCallback(self, callback, priority=None):
     if self._setZoneCompleteCallbacks:
         return self._setZoneCompleteCallbacks.add(callback, priority)
     else:
         token = PriorityCallbacks.GetToken()
         fdc = SubframeCall(callback, taskMgr.getCurrentTask().getPriority() - 1)
         self._setZoneCompleteLocalCallbacks[token] = fdc
         return token
Exemplo n.º 2
0
 def addLeftQuietZoneCallback(self, callback, priority=None):
     if self._leftQuietZoneCallbacks:
         return self._leftQuietZoneCallbacks.add(callback, priority)
     token = PriorityCallbacks.GetToken()
     fdc = SubframeCall(callback,
                        taskMgr.getCurrentTask().getPriority() - 1)
     self._leftQuietZoneLocalCallbacks[token] = fdc
     return token