Files
pywebview/examples/load_css.py
Roman Sirokov 99e3974c92 New API
Cocoa implementation
Revamped tests and examples
2019-04-28 17:07:08 +03:00

14 lines
328 B
Python

import webview
"""
This example demonstrates how to load CSS in a web view window
"""
def load_css(window):
window.load_css('body { background: red !important; }')
if __name__ == '__main__':
window = webview.create_window('Load CSS Example', 'https://pywebview.flowrl.com/hello')
webview.start(load_css, window)