OOP Workshop

Initialize Button

buttonTurtle = turtle.Turtle()
selectedButton = Button("Line","Orange", -130, 220, 40, 20)
shapeButtons = []
shapeButtons.append(selectedButton)

A button can be instantiated by calling the relevant constructor as in the statement

selectedButton = Button("Line","Orange", -130, 220, 40, 20)