Files
pywebview/docs/examples/css_load.md
2018-10-23 18:27:02 +03:00

356 B

CSS load

Change window background color by loading CSS


import webview
import threading


def load_css():
    webview.load_css('body { background: red !important; }')


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

    webview.create_window('Load CSS Example', 'https://pywebview.flowrl.com/hello')