mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-18 21:09:41 +02:00
add loop test
This commit is contained in:
parent
862d246c13
commit
3fa452f839
1 changed files with 19 additions and 0 deletions
19
tests/loop.py
Executable file
19
tests/loop.py
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/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()
|
||||
|
||||
while True:
|
||||
os.system("killall fim")
|
||||
os.system("fim -qa image1.png &")
|
||||
waitMouseClick()
|
||||
os.system("killall fim")
|
||||
os.system("fim -qa image2.png &")
|
||||
waitMouseClick()
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue