From 19082db55aa287ef401fc23c1f384f11103c8288 Mon Sep 17 00:00:00 2001 From: MrP1xel Date: Fri, 27 Jul 2018 23:43:41 +0200 Subject: [PATCH] Update __init__.py Add a picture when reboot --- Menu/GameShell/PowerOFF/__init__.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Menu/GameShell/PowerOFF/__init__.py b/Menu/GameShell/PowerOFF/__init__.py index cd32448..956f457 100644 --- a/Menu/GameShell/PowerOFF/__init__.py +++ b/Menu/GameShell/PowerOFF/__init__.py @@ -11,8 +11,8 @@ import config class PowerOffConfirmPage(ConfirmPage): - _ConfirmText = "Confirm Power OFF?" - + _ConfirmText = "Awaiting Input" + _FootMsg = ["Nav","Reboot","","Cancel","Shutdown"] def CheckBattery(self): try: @@ -59,7 +59,12 @@ class PowerOffConfirmPage(ConfirmPage): cmdpath += "sudo halt -p" pygame.event.post( pygame.event.Event(RUNSYS, message=cmdpath)) - + + if event.key == CurKeys["X"]: + cmdpath = "feh --bg-center gameshell/wallpaper/seeyou.png;" + cmdpath += "sleep 3;" + cmdpath = "sudo reboot" + pygame.event.post( pygame.event.Event(RUNSYS, message=cmdpath)) class APIOBJ(object):