def __init__(self, globalPtr = 0): if globalPtr: self.cObj = CIntervalManager.getGlobalPtr() Dtool_BorrowThisReference(self, self.cObj) self.dd = self else: CIntervalManager.__init__(self) self.eventQueue = EventQueue() self.MyEventmanager = EventManager.EventManager(self.eventQueue) self.setEventQueue(self.eventQueue) self.ivals = [] self.removedIvals = { }
def __init__(self, globalPtr = 0): # Pass globalPtr == 1 to the constructor to trick it into # "constructing" a Python wrapper around the global # CIntervalManager object. if globalPtr: self.cObj = CIntervalManager.getGlobalPtr() Dtool_BorrowThisReference(self, self.cObj) self.dd = self else: CIntervalManager.__init__(self) self.eventQueue = EventQueue() self.MyEventmanager = EventManager.EventManager(self.eventQueue) self.setEventQueue(self.eventQueue) self.ivals = [] self.removedIvals = {}