DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Appuifw.note Allow Global Note In Pys60 1.3.1

02.05.2006
| 7029 views |
  • submit to reddit
        
# note in 1.2 
note(text, type)
# note in 1.3.1
note(text[, type[, global]])
type = 'info' (default) or 'error', 'conf'
global = 1    # display even if app is in background
import appuifw
appuifw.note(u'Hello World')             # simplest case
appuifw.note(u'Cannot connect', 'error') # show error
appuifw.note(u'New message', 'info', 1)  # alert from background