def handle_key_events(self, event):
        "Schedule refreshing the output area after an input area event."
        if event is None or event.char and event.state | 0o11 == 0o11:
            self.after_idle(self.refresh)
Schedule refreshing the output area after an input area event.
recipes/Python/578076_Markov/recipe-578076.py