Window title change | pywebview (v2.4)
Description: Build GUI for your Python program with JavaScript, HTML, and CSS

# # Window title change

Change window title every three seconds.

    import webview
    import threading
    import time

    def change_title():
        """changes title every 3 seconds"""
        for i in range(1, 100):
            time.sleep(3)
            webview.set_title("New Title #{}".format(i))

    if __name__ == '__main__':
        t = threading.Thread(target=change_title)
        t.start()

        webview.create_window('Change window title', 'https://pywebview.flowrl.com/hello')

Help us improve this page!