- wait until button is pressed
- for question in questions:
- some_text_pane.set_text(question)
- #wait until button pressed
- question_pool = iter(questions)
- def next_question(evt):
- question = next(question_pool)
- some_text_pane.set_text(question)
- some_button.set_event_handler(next_question)