Tutorial for webruntime - launch a "browser" desktop app


In [1]:
from 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]:
<webruntime._firefox.FirefoxRuntime at 0x238296c9ba8>

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-browser')


Out[3]:
<webruntime._browser.BrowserRuntime at 0x238296e4b38>

In [ ]: