Make a new Python script called Vectors. py and copy into it the final code from the original AddingBut tons. py file from Chapter 7, but remove the code that creates the button, as highlighted in the following snippet:
def button_click() :
print ("Hello Button")
white $=$ pygame. $\operatorname{Color}(255,255,255)$
green $=$ pygame. $\operatorname{Color}(0,255,0)$
blue $=$ pygame. $\operatorname{Color}(0,0,255)$
button1 = object ("Button")
button1.add_component (Button (screen, $(0,0), 100,50$,
green, white, blue,
button_click))
objects_2d.append(button1)
When this code is run, you will see the regular window and cube in the middle. The cube will still move with the arrow keys.