mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 02:08:50 +01:00
Merge pull request #134 from cuu/master
update twm bg and fix counter screen under hdmi bug
This commit is contained in:
commit
98bf5df99c
Binary file not shown.
|
Before Width: | Height: | Size: 404 KiB After Width: | Height: | Size: 544 KiB |
@ -247,12 +247,7 @@ def InspectionTeam(main_screen):
|
|||||||
|
|
||||||
elif cur_time - everytime_keydown > time_3 and passout_time_stage == 2:
|
elif cur_time - everytime_keydown > time_3 and passout_time_stage == 2:
|
||||||
print("Power Off counting down")
|
print("Power Off counting down")
|
||||||
|
|
||||||
main_screen._CounterScreen.Draw()
|
|
||||||
main_screen._CounterScreen.SwapAndShow()
|
|
||||||
main_screen._CounterScreen.StartCounter()
|
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
f = open(config.BackLight,"r+")
|
f = open(config.BackLight,"r+")
|
||||||
except IOError:
|
except IOError:
|
||||||
@ -264,7 +259,11 @@ def InspectionTeam(main_screen):
|
|||||||
f.write(str(brt))
|
f.write(str(brt))
|
||||||
f.truncate()
|
f.truncate()
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
main_screen._CounterScreen.Draw()
|
||||||
|
main_screen._CounterScreen.SwapAndShow()
|
||||||
|
main_screen._CounterScreen.StartCounter()
|
||||||
|
|
||||||
main_screen._TitleBar._InLowBackLight = 0
|
main_screen._TitleBar._InLowBackLight = 0
|
||||||
|
|
||||||
passout_time_stage = 4
|
passout_time_stage = 4
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user