pocket-friends/pocket_friends/_development/_dev.py

31 lines
343 B
Python
Raw Permalink Normal View History

import os
2023-05-14 19:41:44 -04:00
import sys
import pygame
def reboot_system():
os.system('sudo reboot')
def shutdown_system():
2023-05-14 19:32:12 -04:00
os.system('sudo shutdown now')
2023-05-14 19:41:44 -04:00
2023-05-15 01:20:37 -04:00
2023-05-14 19:41:44 -04:00
def update():
pygame.quit()
2023-05-14 19:46:59 -04:00
os.system('bash ~/update.sh')
2023-05-14 19:45:34 -04:00
sys.exit(1)
2023-05-15 01:20:37 -04:00
2023-05-14 19:45:34 -04:00
def restart_app():
2023-05-14 23:04:26 -04:00
sys.exit(1)
2023-05-15 01:20:37 -04:00
2023-05-14 23:04:26 -04:00
def show_black():
2023-05-15 01:20:37 -04:00
return 'show_black'
def quit():
sys.exit(0)