1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-19 13:29:42 +02:00

work in progress

This commit is contained in:
dbarzin 2022-07-14 13:28:22 +02:00
parent 248102325f
commit d9cc0b1ef2
2 changed files with 27 additions and 0 deletions

14
tests/slideshow.py Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/python3
import os;
def waitMouseClick():
mouse = open( "/dev/input/mice", "rb" )
while True:
buf = mouse.read(3)
if ((buf[0] & 0x1)==1):
break;
mouse.close()
os.system("fim *.png -qa -c 'while(1){display;sleep 1;next;}' </dev/null 2>/dev/null &")
waitMouseClick()
os.system("killall fim")