Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import appuifw as A
- import appswitch
- import fgimage
- import graphics as G
- import time
- home = [u'Phone', u'Telephone', u'Telepon', u'Standby', u'Standby Mode']
- ly=G.sysinfo.display_pixels()
- img=G.Image.new((ly[0],20))
- fg=fgimage.FGImage()
- run=1
- def exit():
- global run
- run = 0
- def shot():
- for x in home:
- try:
- appswitch.switch_to_fg(x)
- except:pass
- A.e32.ao_sleep(0.01)
- s=G.screenshot()
- return s
- ss=shot()
- def hide():
- global ss
- fg.unset()
- ss=None
- def show():
- global ss
- if not ss:
- ss=shot()
- img.clear(0)
- img.blit(ss,target=(0,-44))
- jam=time.ctime()
- img.text((5,14), u'%s' %jam,0)
- fg.set(0,44,img._bitmapapi())
- A.app.exit_key_handler=exit
- while run:
- if appswitch.application_list(1)[0] in home:
- show()
- else:
- hide()
- A.e32.ao_sleep(0.1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement