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

is_removable()

Indique si l’objet peut être supprimé.

start()

Identique à Timer.start

timer_callback()

Callback réel du Timer

Methods Documentation

cancel()[source]

Identique à Timer.cancel

is_removable()[source]

Indique si l’objet peut être supprimé.

start()[source]

Identique à Timer.start

timer_callback()[source]

Callback réel du Timer