event_counter.save(expected_events_counts_filename)
else:
show_manager.play_events_from_file(recording_filename)
expected = EventCounter.load(expected_events_counts_filename)
event_counter.check_counts(expected)
// Check if the right options were selected.
After Change
event_counter.monitor(checkbox_test)
// Create a show manager and record/play events.
show_manager = window.ShowManager(size=(600, 600),
title="DIPY Checkbox")
show_manager.ren.add(checkbox_test)
// Recorded events:
// 1. Click on button of option 1.
// 2. Click on button of option 2.
// 3. Click on button of option 1.
// 4. Click on text of option 3.
// 5. Click on text of option 1.
// 6. Click on button of option 4.
// 7. Click on text of option 1.
// 8. Click on text of option 2.
// 9. Click on text of option 4.
// 10. Click on button of option 3.
show_manager.play_events_from_file(recording_filename)
expected = EventCounter.load(expected_events_counts_filename)
event_counter.check_counts(expected)
// Check if the right options were selected.