This is an old revision of the document!
Enable or disable execution of callbacks registered with OnTimer.
from cubloc import SetOnTimer SetOnTimer(enabled: bool)
True for On, False for Off.enabled is not a bool.from cubloc import OnTimer, SetOnTimer, Debug, CR def timer_handler(): Debug("Timer tick", CR) OnTimer(100, timer_handler) SetOnTimer(False) # Pause timer callback execution SetOnTimer(True) # Resume timer callback execution