You have still posted code that will not run as it is.
by using a for loop every time the button is clicked all that is happening is the following:
a for loop that gives click the values 0 to 3
You need to actually change the state and only do one of the states when the button is clicked , like it does in my example above.
by using a for loop every time the button is clicked all that is happening is the following:
a for loop that gives click the values 0 to 3
- when click is 0 the else code happens.
- when click is 1 the if code happens.
- when click is 2 the elif code happens.
- when click is 3 the else code happens.
You need to actually change the state and only do one of the states when the button is clicked , like it does in my example above.