Courier Extension 1: Event Driven Programming

1. Behind the Clickable Button Panel

Although we won’t be asking you to write any of this code, it’s useful to see how this is done. Let’s take a brief fly-past tour of the code.

In the Interactive Control Code cell you will see the following line of code:

buttons[0].on_click(test_line)

This tells the robot to run the test_line function when the first button (buttons[0]) is clicked.