Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5091

Python • Re: Running script with pygame headless

$
0
0
Depending on what the script does, you could replace pygame with something else to read key presses e.g. pip install keyboard, then use:

Code:

keyboard.on_press(key_press)
etc.

Statistics: Posted by neilgl — Tue Aug 27, 2024 7:34 pm



Viewing all articles
Browse latest Browse all 5091

Trending Articles