Aug-25-2019, 08:53 AM
The code shown is not a complete minimal sample that is able to be run.
You don't want to be remaking another label for each state, one label should be created and its state altered each time the button is pressed.
It is far easier to work with GUI code using classes.
You don't want to be remaking another label for each state, one label should be created and its state altered each time the button is pressed.
It is far easier to work with GUI code using classes.