Code associé à une touche From : https://workshop.numworks.com/python/andreanx/getkeys by Xavier Andréani
from ion import keydown def getkey(): for k in range(53): if keydown(k): return k return -1 k=-1 while k!=6: k=getkey() if k!=-1:print(k)
Create, edit, and import your Python scripts
Code associé à une touche From : https://workshop.numworks.com/python/andreanx/getkeys by Xavier Andréani
from ion import keydown def getkey(): for k in range(53): if keydown(k): return k return -1 k=-1 while k!=6: k=getkey() if k!=-1:print(k)