submodule init and update

This commit is contained in:
cuu 2019-01-26 20:57:52 +08:00
parent fc099786fe
commit f9a74d6579
3 changed files with 6 additions and 2 deletions

View File

@ -145,6 +145,8 @@ class MainScreen(Widget):
_Closed = False _Closed = False
_CounterScreen = None _CounterScreen = None
_LastKey = -1
def __init__(self): def __init__(self):
self._Pages = [] self._Pages = []
self._MyPageStack = PageStack() self._MyPageStack = PageStack()
@ -636,7 +638,8 @@ class MainScreen(Widget):
if callable( current_page_key_down_cb ): if callable( current_page_key_down_cb ):
self._CurrentPage.KeyDown(event) self._CurrentPage.KeyDown(event)
self._LastKey = event.key
def DrawRun(self): def DrawRun(self):
self._MsgBox.SetText(MyLangManager.Tr("Launching")) self._MsgBox.SetText(MyLangManager.Tr("Launching"))
self._MsgBox.Draw() self._MsgBox.Draw()

View File

@ -603,7 +603,6 @@ class Page(Widget):
if cur_li._PosY +cur_li._Height > self._Height: if cur_li._PosY +cur_li._Height > self._Height:
for i in range(0,len(self._MyList)): for i in range(0,len(self._MyList)):
self._MyList[i]._PosY -= self._MyList[i]._Height*dy self._MyList[i]._PosY -= self._MyList[i]._Height*dy
def KeyDown(self,event):##default keydown,every inherited page class should have it's own KeyDown def KeyDown(self,event):##default keydown,every inherited page class should have it's own KeyDown
if event.key == CurKeys["A"]: if event.key == CurKeys["A"]:

View File

@ -4,6 +4,8 @@ cd /home/cpi/launcher
feh --bg-center /home/cpi/launcher/sys.py/gameshell/wallpaper/updating.png feh --bg-center /home/cpi/launcher/sys.py/gameshell/wallpaper/updating.png
git pull git pull
git reset --hard $1 git reset --hard $1
git submodule init
git submodule update
feh --bg-center /home/cpi/launcher/sys.py/gameshell/wallpaper/loading.png feh --bg-center /home/cpi/launcher/sys.py/gameshell/wallpaper/loading.png
./load.sh ./load.sh