mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 18:28:50 +01:00
switch to launchego
This commit is contained in:
parent
40cafe09c5
commit
dd3b95b3f5
34
Menu/GameShell/10_Settings/LauncherGo/__init__.py
Normal file
34
Menu/GameShell/10_Settings/LauncherGo/__init__.py
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import os
|
||||||
|
import pygame
|
||||||
|
#import math
|
||||||
|
#mport subprocess
|
||||||
|
import glob
|
||||||
|
#from beeprint import pp
|
||||||
|
from libs.roundrects import aa_round_rect
|
||||||
|
|
||||||
|
## local UI import
|
||||||
|
from UI.lang_manager import MyLangManager
|
||||||
|
|
||||||
|
class APIOBJ(object):
|
||||||
|
|
||||||
|
_Page = None
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
def Init(self,main_screen):
|
||||||
|
pass
|
||||||
|
def API(self,main_screen):
|
||||||
|
if main_screen !=None:
|
||||||
|
main_screen._MsgBox.SetText("Rebooting to LauncherGo")
|
||||||
|
main_screen._MsgBox.Draw()
|
||||||
|
main_screen.SwapAndShow()
|
||||||
|
pygame.time.delay(300)
|
||||||
|
os.system("sed -i s/launcher/launchergo/g ~/.bashrc" )
|
||||||
|
os.system("sudo reboot")
|
||||||
|
|
||||||
|
OBJ = APIOBJ()
|
||||||
|
def Init(main_screen):
|
||||||
|
OBJ.Init(main_screen)
|
||||||
|
def API(main_screen):
|
||||||
|
OBJ.API(main_screen)
|
||||||
@ -65,7 +65,8 @@ class ListPage(Page):
|
|||||||
["","Update", ""],
|
["","Update", ""],
|
||||||
["","About", "About"],
|
["","About", "About"],
|
||||||
["","PowerOFF","Power off"],
|
["","PowerOFF","Power off"],
|
||||||
["","ButtonsLayout","Buttons Layout"],]
|
["","ButtonsLayout","Buttons Layout"],
|
||||||
|
["","LauncherGo","Switch to LauncherGo"]]
|
||||||
|
|
||||||
start_x = 0
|
start_x = 0
|
||||||
start_y = 0
|
start_y = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user