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")
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")
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))
def destroy_window(uid='master'): """ Destroy a web view window :param uid: uid of the target instance """ gui.destroy_window(uid)
def destroy_window(): """ Destroy a web view window """ gui.destroy_window()