Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import appuifw,e32
- lock=e32.Ao_lock()
- timer_title=e32.Ao_timer()
- count=0
- t=0.1
- def title_app(text):
- global count,t
- #cancel pending timer first
- timer_title.cancel()
- appuifw.app.title=u"%s"%(text[count:])
- count=count+1
- if count >len(text)+1:
- count=0
- appuifw.app.title=u"Title not moving"
- #sleep for 0.5 seconds
- e32.Ao_timer().after(0.5)
- timer_title.after(t,lambda: title_app(text))
- #this function can be used anywhere for scrolling/moving Title
- title_app('This is a moving title.It moves')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement