コード例 #1
0
ファイル: __init__.py プロジェクト: secondmover/pywebview
def load_url(url):
    """
    Load a new URL 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 url: url to load
    """
    gui.load_url(url)
コード例 #2
0
def load_url(url):
    """
    Load a new URL 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 url: url to load
    """
    gui.load_url(url)
コード例 #3
0
def load_url(url, uid='master'):
    """
    Load a new URL 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 url: url to load
    :param uid: uid of the target instance
    """
    gui.load_url(url, uid)
コード例 #4
0
ファイル: __init__.py プロジェクト: ysobolev/pywebview
def load_url(url):
    """
    Load a new URL 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 url: url to load
    """
    try:
        gui.load_url(url)
    except NameError:
        raise Exception("Create a web view window first, before invoking this function")
コード例 #5
0
def load_url(url):
    """
    Load a new URL 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 url: url to load
    """
    try:
        _webview_ready.wait(5)
        gui.load_url(url)
    except NameError:
        raise Exception("Create a web view window first, before invoking this function")
コード例 #6
0
def load_url(url, uid='master'):
    """
    Load a new URL 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 url: url to load
    :param uid: uid of the target instance
    """
    try:
        _webview_ready.wait(5)
        gui.load_url(url, uid)
    except NameError:
        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))