Beispiel #1
0
def destroy_window():
    """
    Destroy a web view window
    """
    try:
        gui.destroy_window()
    except NameError:
        raise Exception("Create a web view window first, before invoking this function")
Beispiel #2
0
def destroy_window():
    """
    Destroy a web view window
    """
    try:
        _webview_ready.wait(5)
        gui.destroy_window()
    except NameError:
        raise Exception("Create a web view window first, before invoking this function")
Beispiel #3
0
def destroy_window(uid='master'):
    """
    Destroy a web view window
    :param uid: uid of the target instance
    """
    try:
        _webview_ready.wait(5)
        gui.destroy_window(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))
Beispiel #4
0
def destroy_window(uid='master'):
    """
    Destroy a web view window
    :param uid: uid of the target instance
    """
    gui.destroy_window(uid)
Beispiel #5
0
def destroy_window():
    """
    Destroy a web view window
    """
    gui.destroy_window()
Beispiel #6
0
def destroy_window():
    """
    Destroy a web view window
    """
    gui.destroy_window()