commit bac4a4206ea5a8aa1a054feca6a09cf37623b4d9
parent b4f70c05809e47c824bbb25c48c5bc19d35a4e23
Author: rob <rob@tarina.org>
Date: Wed, 14 Dec 2022 21:03:32 +0200
fuckye
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tarinactrl.py b/tarinactrl.py
@@ -87,7 +87,7 @@ def printmenu(recording,selected,cameras,camselected):
a=a+1
-menu = ["Quit","Add CAMERA","New SCENE","Sync SCENE","Ping"]
+menu = ["Quit","Add CAMERA","New SCENE","Sync SCENE","Record"]
##----------------------Main loop starts-------------------------
@@ -118,7 +118,7 @@ def main(serverstatus):
if selected > 0:
selected = selected - 1
elif event == "KEY_DOWN":
- if selected < 3:
+ if selected < len(menu):
selected = selected + 1
elif event == "R":
a=0
@@ -153,7 +153,7 @@ def main(serverstatus):
if i not in camerasoff:
sendtocamera(i,port,'PING')
a=a+1
- elif event == "KEY_PGUP":
+ elif event == "KEY_PGUP" or event=="KEY_ENTER" and menu[selected]=='Record':
a=0
for i in cameras:
if i not in camerasoff: