J'aime sortir chaque lettre d'une chaîne après avoir attendu un certain temps, pour obtenir un effet de machine à écrire.attente asynchrone/non bloquante attente en python
for char in string:
libtcod.console_print(0,3,3,char)
time.sleep(50)
Mais cela bloque le thread principal, et le programme devient inactif.
Tu ne peux pas y accéder plus jusqu'à ce qu'il se termine
Note: libtcod est utilisé
semble que vous avez besoin de regarder [multithreading] (http://docs.python.org/2/library/threading.html) ou [Multiprocessing] (http://docs.python.org/2/library/multiprocessing.html). –