Never been to DZone Snippets before?

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

About this user

Korakot Chaovavanich http://korakot.stumbleupon.com

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Switch application to foreground in pys60

Taken from the 'appswitch' module here
   1  
   2  import appswitch
   3  print appswitch.switch_to_fg(u"Menu")

Updated (19 Oct 05)
==================
Now it can
- listing running applications
- switching them to foreground/background
- closing/killing apps
   1  
   2  # listing
   3  apps = appswitch.application_list(True) # true = include all
   4                                         # false = no hidden apps 
   5  print apps
   6  
   7  # to background and closing
   8  print appswitch.switch_to_bg(u"TODO")
   9  print appswitch.end_app(u"TODO")

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS