Build GUI for your Python program with JavaScript, HTML, and CSS
webview.create_window(maximized=False)
Create a window in a maximized state. Thanks @vsajipwebview.create_window(screen=screen_instance)
Create a window on a specific monitor, where screen
is a screen returned by window.screens
. Thanks @louisnw01window.title
.webview.screens
is returned before webview.start
#1193webview.start()
call #1063. Thanks @PercentBoat4164webview.create_window(focus=False)
to create a non-focusable window. Thanks @mi4code #1030.pyobjc-framework-security
.Released 02/05/2023
webview.start(ssl=True)
. Thanks @keredsonwebview.start(storage_path)
can now be set in private mode. This can be useful if you do not have write access to EdgeChromium default data directory and get 0x80070005 (E_ACCESSDENIED) error. #1026AttributeError: module 'webview.http' has no attribute 'running'
exception occurring when multiple windows are opened. Thanks @YidaozhanYa. #1024create_window(hidden=True)
makes the show() command not work #1050window.events
namespace. window.loaded
, window.shown
etc no longer work.examples/menu.py
for usage example. Thanks @sardinationwebview.start(private_mode=True, storage_path=None)
Private mode and persistant storage support in a non-private mode. Private mode is enabled by default.webview.create_window(zoomable=False)
Enable / disable zooming on webpage. Disabled by default.webview.create_window(draggable=False)
Enable / disable dragging of IMG and A elements. Disabled by default.webview.create_confirmation_dialog(title, content)
creates a confirmation (Ok, Cancel) dialog. Thanks @sardination.window.get_cookies()
retrieve all the cookies (including HttpOnly) for the current webpage.webview.create_window(vibancy=False)
Window vibrancy suppport. macOS only. Thanks @CahierX.evaluate_js
performance.