How can I make a function repeat until a specific key is pressed on python with pynput?

前端 未结 0 1776
情话喂你
情话喂你 2020-11-29 18:04

I want to do something like this

while True:
    fuction()
    function_that_checks_if_q_is_pressed()
    if function_that_checks_if_q_is_pressed==True:
              


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题