def load_html(content, base_uri=base_uri(), uid='master'): """ Load a new content into a previously created WebView window. This function must be invoked after WebView windows is created with create_window(). Otherwise an exception is thrown. :param content: Content to load. :param base_uri: Base URI for resolving links. Default is the directory of the application entry point. :param uid: uid of the target instance """ content = make_unicode(content) gui.load_html(content, base_uri, uid)
def load_html(content, base_uri=""): """ Load a new content into a previously created WebView window. This function must be invoked after WebView windows is created with create_window(). Otherwise an exception is thrown. :param content: Content to load. :param base_uri: Base URI for resolving links. Default is "". """ try: gui.load_html(_make_unicode(content), base_uri) except NameError: raise Exception("Create a web view window first, before invoking this function")
def load_html(content, base_uri=""): """ Load a new content into a previously created WebView window. This function must be invoked after WebView windows is created with create_window(). Otherwise an exception is thrown. :param content: Content to load. :param base_uri: Base URI for resolving links. Default is "". """ try: _webview_ready.wait(5) gui.load_html(_make_unicode(content), base_uri) except NameError as e: raise Exception("Create a web view window first, before invoking this function")
def load_html(content, base_uri='', uid='master'): """ Load a new content into a previously created WebView window. This function must be invoked after WebView windows is created with create_window(). Otherwise an exception is thrown. :param content: Content to load. :param base_uri: Base URI for resolving links. Default is "". :param uid: uid of the target instance """ try: _webview_ready.wait(5) gui.load_html(_make_unicode(content), base_uri, uid) except NameError as e: raise Exception("Create a web view window first, before invoking this function") except KeyError: raise Exception("Cannot call function: No webview exists with uid: {}".format(uid))