1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-19 05:19:40 +02:00
pandora-box/tests/slideshow.py

18 lines
440 B
Python
Raw Normal View History

2022-07-14 13:28:22 +02:00
#!/usr/bin/python3
import os;
def waitMouseClick():
mouse = open( "/dev/input/mice", "rb" )
2022-07-25 01:00:07 +02:00
down = False;
2022-07-14 13:28:22 +02:00
while True:
buf = mouse.read(3)
if ((buf[0] & 0x1)==1):
2022-07-25 01:00:07 +02:00
down = True
if (((buf[0] & 0x1)==0) and down):
2022-07-14 13:28:22 +02:00
break;
mouse.close()
os.system("fim *.png -qa -c 'while(1){display;sleep 1;next;}' </dev/null 2>/dev/null &")
waitMouseClick()
2022-07-14 14:00:37 +02:00
os.system("killall -s 9 fim")