|
|
@@ -33,23 +33,23 @@ class IntervalManager(CIntervalManager):
|
|
|
self.ivals = []
|
|
|
self.removedIvals = {}
|
|
|
else: ## the old interface
|
|
|
- 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:
|
|
|
- #CIntervalManager.__init__(self, None)
|
|
|
- cObj = CIntervalManager.getGlobalPtr()
|
|
|
- self.this = cObj.this
|
|
|
- self.userManagesMemory = 0
|
|
|
- else:
|
|
|
- CIntervalManager.__init__(self)
|
|
|
- # Set up a custom event queue for handling C++ events from
|
|
|
- # intervals.
|
|
|
- self.eventQueue = EventQueue()
|
|
|
- self.MyEventmanager = EventManager.EventManager(self.eventQueue)
|
|
|
- self.setEventQueue(self.eventQueue)
|
|
|
- self.ivals = []
|
|
|
+ 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:
|
|
|
+ #CIntervalManager.__init__(self, None)
|
|
|
+ cObj = CIntervalManager.getGlobalPtr()
|
|
|
+ self.this = cObj.this
|
|
|
+ self.userManagesMemory = 0
|
|
|
+ else:
|
|
|
+ CIntervalManager.__init__(self)
|
|
|
+ # Set up a custom event queue for handling C++ events from
|
|
|
+ # intervals.
|
|
|
+ self.eventQueue = EventQueue()
|
|
|
+ self.MyEventmanager = EventManager.EventManager(self.eventQueue)
|
|
|
+ self.setEventQueue(self.eventQueue)
|
|
|
+ self.ivals = []
|
|
|
self.removedIvals = {}
|
|
|
|
|
|
|