OOP Workshop

Update Button Method

def updateButtons():
    for i in range(len(shapeButtons)):
        shapeButtons[i].drawTheButton(buttonTurtle)
        

All buttons will be redrawn on the screen as soon as the selected button is changed.