def run(self):
        """
        Execute pending WX events followed by WX idle events and
        reschedule.
        """
        # run wx events
        while self.app.Pending():
            self.app.Dispatch()

        # run wx idle events
        self.app.ProcessIdle()
        reactor.callLater(0.02, self.run)

        Execute pending WX events followed by WX idle events and
        reschedule.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/wxsupport.py