Compare commits
No commits in common. "3fde1996cad7247bcef5f5cd6fd2c5c066a13f54" and "8675caaca6ae89a42dbeebe3e4aff2c4840186a5" have entirely different histories.
3fde1996ca
...
8675caaca6
@ -11,20 +11,13 @@ def reboot_system():
|
|||||||
def shutdown_system():
|
def shutdown_system():
|
||||||
os.system('sudo shutdown now')
|
os.system('sudo shutdown now')
|
||||||
|
|
||||||
|
|
||||||
def update():
|
def update():
|
||||||
pygame.quit()
|
pygame.quit()
|
||||||
os.system('bash ~/update.sh')
|
os.system('bash ~/update.sh')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
def restart_app():
|
def restart_app():
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
def show_black():
|
def show_black():
|
||||||
return 'show_black'
|
return 'show_black'
|
||||||
|
|
||||||
|
|
||||||
def quit():
|
|
||||||
sys.exit(0)
|
|
||||||
|
@ -10,7 +10,7 @@ class Surface(surface.GameSurface):
|
|||||||
self.delay = 1
|
self.delay = 1
|
||||||
self.font = pygame.font.Font(resources_dir + '/fonts/5Pts5.ttf', 10)
|
self.font = pygame.font.Font(resources_dir + '/fonts/5Pts5.ttf', 10)
|
||||||
self.title = pygame.image.load(resources_dir + '/images/debug/invalid.png').convert_alpha()
|
self.title = pygame.image.load(resources_dir + '/images/debug/invalid.png').convert_alpha()
|
||||||
self.next_surface = '_dev_menu'
|
self.next_surface = 'title'
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
self.preprocess()
|
self.preprocess()
|
||||||
|
@ -8,8 +8,7 @@ dev_functions = {
|
|||||||
'Shutdown': 'shutdown_system',
|
'Shutdown': 'shutdown_system',
|
||||||
'Update': 'update',
|
'Update': 'update',
|
||||||
'Re-open App': 'restart_app',
|
'Re-open App': 'restart_app',
|
||||||
'Black screen': 'show_black',
|
'Black screen': 'show_black'
|
||||||
'!!! Close App': 'quit'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user