Tutorial for flexx.webruntime - launch a "browser" desktop app


In [1]:
from flexx.webruntime import launch

The API for this module consists mainly of the launch() function. It opens the given URL in one of the supported runtimes. By default, it will use the 'xul' runtime (which relies on Firefox) if its available.


In [2]:
launch('http://flexx.rtfd.org', title='Flexx website')


Out[2]:
<flexx.webruntime.xul.XulRuntime at 0x7f2ed4ef0c88>

You can also specify the runtime. When this is a browser, you can (of course) not set the title, size etc.


In [3]:
launch('http://flexx.rtfd.org', 'firefox')


Out[3]:
<flexx.webruntime.browser.BrowserRuntime at 0x7f2ed5b8a828>