From c312d30eb87cfcb5baed9c55611c818d3f251e8c Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Sat, 6 Sep 2008 00:09:12 +0000 Subject: [PATCH] added accessor methods for task duration warning threshold --- direct/src/task/Task.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/direct/src/task/Task.py b/direct/src/task/Task.py index 6a0e508e9d..4616d90171 100644 --- a/direct/src/task/Task.py +++ b/direct/src/task/Task.py @@ -418,6 +418,12 @@ class TaskManager: self.fVerbose = value messenger.send('TaskManager-setVerbose', sentArgs = [value]) + def getTaskDurationWarningThreshold(self): + return self.taskDurationWarningThreshold + + def setTaskDurationWarningThreshold(self, threshold): + self.taskDurationWarningThreshold = threshold + def invokeDefaultHandler(self, signalNumber, stackFrame): print '*** allowing mid-frame keyboard interrupt.' # Restore default interrupt handler