def progressReport(self, done, outOf=100):
        """Passes on a progress report to the gui thread"""
        if self.param:
            if outOf == 100: evt = ResponseEvent(self.onProgressReport, None, None, float(done), self.param)
            else: evt = ResponseEvent(self.onProgressReport, None, None, (done/float(outOf))*100, self.param)
        else:
            if outOf == 100: evt = ResponseEvent(self.onProgressReport, None, None, float(done))
            else: evt = ResponseEvent(self.onProgressReport, None, None, (done/float(outOf))*100)
        self.twistedThread.app.AddPendingEvent(evt)
Passes on a progress report to the gui thread
recipes/Python/286201_wx_twisted_support_using_threads/recipe-286201.py