mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-31 11:19:41 +02:00
Merge branch 'main' of https://github.com/dbarzin/pandora-box
This commit is contained in:
commit
d6389c1ac4
2 changed files with 22 additions and 1 deletions
|
@ -91,9 +91,11 @@ def display_image(status):
|
||||||
image = "images/pandora-box5.png"
|
image = "images/pandora-box5.png"
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
os.system("convert -resize %s -background black -gravity center -extent %s %s bgra:/dev/fb0" % (SCREEN_SIZE, SCREEN_SIZE, image))
|
|
||||||
# os.system("killall -9 fbi 2>/dev/null")
|
# os.system("killall -9 fbi 2>/dev/null")
|
||||||
# os.system("fbi -T 1 -d /dev/fb0 -noverbose -a %s" % image)
|
# os.system("fbi -T 1 -d /dev/fb0 -noverbose -a %s" % image)
|
||||||
|
#os.system("convert -resize %s -background black -gravity center -extent %s %s bgra:/dev/fb0" % (SCREEN_SIZE, SCREEN_SIZE, image))
|
||||||
|
os.system("killall fim 2>/dev/null")
|
||||||
|
os.system("fim -qa %s </dev/null 2>/dev/null &" % image)
|
||||||
|
|
||||||
# -----------------------------------------------------------
|
# -----------------------------------------------------------
|
||||||
|
|
||||||
|
|
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 2>/dev/null &")
|
||||||
|
waitMouseClick()
|
||||||
|
os.system("killall fim")
|
||||||
|
os.system("fim -qa image2.png 2>/dev/null &")
|
||||||
|
waitMouseClick()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue