DelayedAction¶
-
class
labpyproject.core.app.app_components.
DelayedAction
(interval, function, args=None, kwargs=None, autostart=True, external_callback=None)[source]¶ Bases :
object
Objet de gestion d’une action différée utilisant threading.Timer par composition.
Constructeur.
- Paramètres
interval (sec) – identique à threading.Timer
function (function) – identique à threading.Timer
args (list) – identique à threading.Timer
kwargs (dict) – identique à threading.Timer
autostart (boolean) –
external_callback (function) – appelée lorsque l’action est effectuée ou annulée
Methods Summary
cancel
()Identique à Timer.cancel
Indique si l’objet peut être supprimé.
start
()Identique à Timer.start
Callback réel du Timer
Methods Documentation