Browse Source

submodule init and update

cuu 5 years ago
parent
commit
f9a74d6579
3 changed files with 6 additions and 2 deletions
  1. 4 1
      sys.py/UI/main_screen.py
  2. 0 1
      sys.py/UI/page.py
  3. 2 0
      update.sh

+ 4 - 1
sys.py/UI/main_screen.py

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

+ 0 - 1
sys.py/UI/page.py

@@ -603,7 +603,6 @@ class Page(Widget):
         if cur_li._PosY +cur_li._Height > self._Height:
             for i in range(0,len(self._MyList)):
                 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
         if event.key == CurKeys["A"]:

+ 2 - 0
update.sh

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