""" Use application flags to modify default behaviour of pywebview """ import webview html = """

target='_blank' link will be opened in the current window.

""" if __name__ == '__main__': print(webview.settings) webview.settings['OPEN_EXTERNAL_LINKS_IN_BROWSER'] = False webview.settings['OPEN_DEVTOOLS_IN_DEBUG'] = False window = webview.create_window('Application flags', html=html) webview.start()