'Execute pending WX events followed by WX idle events and
reschedule.'

def run(self):

    while self.app.Pending():
        self.app.Dispatch()
    self.app.ProcessIdle()
    reactor.callLater(0.02, self.run)
