Task.py __executeTask and arguments

    def _runInMainThread(self, f):
        if hasattr(self, "pandaApp"):
            #taskMgr.add(f,"twisted")
            self.f = f
            taskMgr.add(self.taskWrapper, 'taskWrapper') 
        else:
            self._postQueue.put(f)
    def taskWrapper(self, task):
        self.f()
        return None

That’s the ticket. Thanks a bunch. :slight_smile: I’ll post the rest of the code once i get signal handling taken care of and get it cleaned up a bit.