Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
fonction_periodique [2009/01/11 15:09] tyrtamos |
fonction_periodique [2009/01/11 16:24] tyrtamos |
||
---|---|---|---|
Ligne 25: | Ligne 25: | ||
<code python> | <code python> | ||
import threading | import threading | ||
- | import time | ||
class Intervallometre(threading.Thread): | class Intervallometre(threading.Thread): | ||
Ligne 49: | Ligne 48: | ||
self.timer.cancel() | self.timer.cancel() | ||
</ | </ | ||
+ | |||
+ | ===== Utilisation ===== | ||
\\ | \\ | ||
Ligne 79: | Ligne 80: | ||
<code python> | <code python> | ||
+ | import time | ||
+ | |||
duree = 0.5 | duree = 0.5 | ||