fix bugs in TinyCloud and About

This commit is contained in:
cuu
2018-05-26 15:49:57 +08:00
parent d9fa209fd8
commit e7d7754def
2 changed files with 17 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ from UI.label import Label
from UI.fonts import fonts
from UI.icon_item import IconItem
from UI.icon_pool import MyIconPool
from UI.keys_def import CurKeys
from libs.DBUS import is_wifi_connected_now,get_wifi_ip
@@ -161,6 +162,13 @@ class TinyCloudPage(Page):
self.SetLabels()
def KeyDown(self,event):
if event.key == CurKeys["A"] or event.key == CurKeys["Menu"]:
if self._FootMsg[3] == "Back":
self.ReturnToUpLevelPage()
self._Screen.Draw()
self._Screen.SwapAndShow()
return
def Draw(self):
if self._DrawOnce == False: