There are new labels created both outside and inside of the for loop
Create the labels once outside of the spin function
Update the existing labels in the spin function
delete them separately when they are no longer required or they can be deleted by destroying their parent.
At the moment labels are being piled up on top of each other using up memory.
Create the labels once outside of the spin function
Update the existing labels in the spin function
delete them separately when they are no longer required or they can be deleted by destroying their parent.
At the moment labels are being piled up on top of each other using up memory.