Hey guys,
I'm trying to make a display that will take a counter from a SQLtag that is in seconds and convert and display it in either seconds, minutes or hours depending on which radio button is selected. I can get it to work by writing an event script on each radio button but the problem is it only displays once and will not update unless the radio button is reselected. I would like it to continuously update the value. I tried putting a while statement in there and that locked up the client as soon as the radio button was selected. I even tried putting a delay in there so it looks like this:
while event.source.selected:
event.source.parent.getComponent(‘Numeric Label 2’).value = event.source.parent.getComponent(‘Numeric Label’).value
import time
time.sleep(1)
But that still locks up the client and I have to end the task. I’m probably going about this all wrong but is there a way to constantly update a value off of an event like selecting a radio button? Thanks!