rox.uri_handler | index |
Look up or launch the handler for a URI. URIs are in the form scheme:other
and the handler for a given scheme is <Choices>.rox.sourceforge.net/URI/scheme
To open up a web page in the user's prefered web browser:
import rox.uri_handler
try:
pid=rox.uri_handler.launch('http://rox.sourceforge.net/')
except:
# Try firefox instead
pid=os.spawnlp(os.P_NOWAIT, 'firefox', 'firefox',
'http://rox.sourceforge.net/')
os.waitpid(pid)
Functions | ||
|