Example #1
0
def open(url, modal=False, stop_when_done=False):
    if modal:
        import ui
        webview = ui.WebView()
        webview.name = 'Web'
        webview.load_url(url)
        webview.present('fullscreen')
        webview.wait_modal()
        if stop_when_done:
            raise KeyboardInterrupt
        else:
            return True
    else:
        return _webbrowser.open(url, modal, stop_when_done)
def open(url, modal=False, stop_when_done=False):
	if modal:
		import ui
		webview = ui.WebView()
		webview.name = 'Web'
		webview.load_url(url)
		webview.present('fullscreen')
		webview.wait_modal()
		if stop_when_done:
			raise KeyboardInterrupt
		else:
			return True
	else:
		return _webbrowser.open(url, modal, stop_when_done)
Example #3
0
def open(url, modal=False, stop_when_done=False):
    return _webbrowser.open(url, modal, stop_when_done)