31 lines
343 B
Python
31 lines
343 B
Python
import os
|
|
import sys
|
|
|
|
import pygame
|
|
|
|
|
|
def reboot_system():
|
|
os.system('sudo reboot')
|
|
|
|
|
|
def shutdown_system():
|
|
os.system('sudo shutdown now')
|
|
|
|
|
|
def update():
|
|
pygame.quit()
|
|
os.system('bash ~/update.sh')
|
|
sys.exit(1)
|
|
|
|
|
|
def restart_app():
|
|
sys.exit(1)
|
|
|
|
|
|
def show_black():
|
|
return 'show_black'
|
|
|
|
|
|
def quit():
|
|
sys.exit(0)
|