Revert "Respond to user requests for changes" (#37)

* Revert "Respond to user requests (#35)"

This reverts commit dc1b7e007c.

* Revert "image text"

This reverts commit 968db78adb.

* Revert "add restore in POWEROPT event"

This reverts commit 88523224de.

* Revert "off to OFF"

This reverts commit 586aa75ae4.

* Revert "text fix"

This reverts commit 8e3a90589a.

* Revert "ignore powerlevel"

This reverts commit 164b55fb4b.

* Revert "switch smalltext"

This reverts commit 01a5f2ef9a.

* Revert "text fix"

This reverts commit e03a9da323.

* Revert "text fix"

This reverts commit b5603bcf7c.

* Revert "sudo rfkill"

This reverts commit 2bbeba5665.

* Revert "InspectionTeam"

This reverts commit 3db3b0e8b3.

* Revert "move back CurKeySet"

This reverts commit 10f7e35e2e.

* Revert "rm png"

This reverts commit bfdb83683a.

* Revert "airplane mode with animation"

This reverts commit 6e19ad88a7.

* Revert "add detail on power mode"

This reverts commit d66a0df823.

* Revert "add PowerLevel options"

This reverts commit 36c54a4f9d.

* Revert "TitleBar show airplane mode icon"

This reverts commit 74e7f8ab69.

* Revert "Toggle AirPlane Mode"

This reverts commit 2d11df8c37.

* Revert "start sheep"

This reverts commit 8f965b3ba5.

* Revert "fix bug dosbox on rom_list_page and remove scalesmooth on sec level icons"

This reverts commit b4e40d052a.

* Revert "fix fav display bug on dosbox"

This reverts commit 40be34e30d.

* Revert "add dosbox on fav"

This reverts commit 2cba2e5808.

* Revert "add dosbox"

This reverts commit bd71c64a5c.

* Revert "Move back to 10_Settings"

This reverts commit 4acacaf736.

* Revert "change load modules checking in Settings list_page"

This reverts commit 385b672eeb.

* Revert "develop branch commit"

This reverts commit f604310bb2.
This commit is contained in:
clockworkpi
2018-07-04 16:41:40 +08:00
committed by GitHub
parent 89f1ebae8b
commit db5408d198
24 changed files with 92 additions and 1195 deletions

View File

@@ -10,7 +10,7 @@ from UI.constants import Width,Height
from UI.page import Page,PageSelector
from UI.label import Label
from UI.fonts import fonts
from UI.util_funcs import midRect,FileExists
from UI.util_funcs import midRect
from UI.keys_def import CurKeys
from UI.scroller import ListScroller
@@ -76,21 +76,19 @@ class ListPage(Page):
self._PsIndex = 0
# "" pkgname, label
alist = [["","Airplane","Airplane Mode"],
["","PowerOptions","Power Options"],
["","Wifi","Wi-Fi"],
alist = [["","Wifi","Wi-Fi"],
["","Sound","Sound Volume"],
["","Brightness","BackLight Brightness"],
["","Storage",""],
["","Update", ""],
["","About", "About"],
["","PowerOFF","Power off"],]
["","PowerOFF","Power off"]]
start_x = 0
start_y = 0
sys.path.append(myvars.basepath)# add self as import path
for i,v in enumerate(alist):
li = ListItem()
li._Parent = self
@@ -104,15 +102,13 @@ class ListPage(Page):
else:
li.Init(v[1])
#if v[1] == "Wifi" or v[1] == "Sound" or v[1] == "Brightness" or v[1] == "Storage" or v[1] == "Update" or v[1] == "About" or v[1] == "PowerOFF" or v[1] == "HelloWorld":
if FileExists(myvars.basepath+"/"+ v[1]):
if v[1] == "Wifi" or v[1] == "Sound" or v[1] == "Brightness" or v[1] == "Storage" or v[1] == "Update" or v[1] == "About" or v[1] == "PowerOFF":
li._LinkObj = __import__(v[1])
init_cb = getattr(li._LinkObj,"Init",None)
if init_cb != None:
if callable(init_cb):
li._LinkObj.Init(self._Screen)
self._MyList.append(li)
self._MyList.append(li)
self._Scroller = ListScroller()
self._Scroller._Parent = self