commit 22a2d552ff32d25c5610deb469cacc7896e45a8a
parent 078f882d771d474547d67e5d097e3da9fffd7fc4
Author: rbckman <rob@tarina.org>
Date: Fri, 27 Nov 2020 20:08:58 +0200
putting back shutdown func
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tarina.py b/tarina.py
@@ -161,8 +161,13 @@ def main():
pressed, buttonpressed, buttontime, holdbutton, event, keydelay = getbutton(pressed, buttonpressed, buttontime, holdbutton)
#event = screen.getch()
if recording == False:
+ #SHUTDOWN
+ if pressed == 'middle' and menu[selected] == 'SHUTDOWN':
+ writemessage('Hold on shutting down...')
+ time.sleep(1)
+ run_command('sudo shutdown -h now')
#PEAKING
- if pressed == 'peak' and recordable == True:
+ elif pressed == 'peak' and recordable == True:
if shot > 1:
peakshot = shot - 1
peaktake = counttakes(filmname, filmfolder, scene, peakshot)