def customReport(self, *params, **kwparams):
        """Passes on a custom event to the gui thread"""
        if self.param:
            evt = ResponseEvent(self.onCustomReport, None, None, self.param, *params, **kwparams)
        else:
            evt = ResponseEvent(self.onCustomReport, None, None, *params, **kwparams)            
        self.twistedThread.app.AddPendingEvent(evt)
Passes on a custom event to the gui thread
recipes/Python/286201_wx_twisted_support_using_threads/recipe-286201.py