mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 05:19:40 +02:00
20 lines
400 B
Python
20 lines
400 B
Python
|
#!/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()
|
||
|
|