Releases: r0x0r/pywebview
Releases · r0x0r/pywebview
5.3.2
5.3.1
5.3
⚡ Features
All
Native window object for each platform is now exposedwindow.native
. You can use it for example for applying custom appearance to a window. Additionally WebView is exposed viawindow.native.webview
All
Newwindow.events.before_show
event.All
New DomEventHandlerdebounce
parameter. It can be used it for solving performance issues withdragover
andmouseover
events.GTK/QT
application icon support for GTK and QT platformswebview.start(icon=<path>)
🚀 Improvements
All
Storage path is now verified for write permissions before application start. An exception is thrown, if path is not writable.All
Refined logic at which point of the startup procedureshown
event is fired.Cocoa
Better handling of stopping event loop in headless environments.Windows
Fallback to WinForms when QT is forced and not availableWindows
Remove white border in a fullscreen window.Windows
Support multiple selection in open folder dialog.
🐞 Bug fixes
All
Support for Unicode filenames in drag and drop. Thanks @hustshenlCocoa
Fix open file dialog file type selector and all files filterCocoa
Fix folder drag and drop. Thanks @pythonsGTK
Fix multiple file drag and drop on certain Linux distributions. Thanks @coffeejunkQT
QT6 compatilibityQT
Release of profile requested but WebEnginePage still not deleted with multiple windowsWindows
Graceful handling forshcore.dll
not being present on Windows 7. Thanks @rafael-vasconcellos.Windows
Return result of open folder dialog is fixed to tuple.Edge Chromium
Current url not being updated after a navigation event. Thanks @hustshenl
5.2
🚀 Improvements
All
Replace print with logging in JS API exception handling.All
Replace ssl.wrap_socket() with SSLContext().wrap_socket(). Thanks @lanzzWinForms
Add a modern Vista open folder dialog. Thanks @v_yonghliaoWinforms
Fallback to Winforms when QT is forced, but not available.EdgeChromium
Replacewindow.alert
with a message box implementation.MSHTML
Convert JS API code to ES5 to be compatible with MSHTML.
🐞 Bug fixes
All
Add missing return in DOM.body property. Thanks @lanzz.All
Use json.dumps to serialise the html template in create_element. Thanks @lanzzAll
Fix ever-growing main menu bug. Thanks @lanzzAll
Change on_closing event handlers to be executed synchronously in order to prevent a deadlock when using thread join. #1439All
FixTypeError: unhashable type
with certain unhashable object types exposed via JS API. #1442Cocoa
Fix nil pointer dereference during file download. Thanks @realityone.EdgeChromium
Support multiple pywebviews at the same time. Thanks @huan1936.QT
QT6 compatibility.QT
Fix devtools in PySide6. Thanks @TransparentLCQT
Fix user agent.QT
Fix segfault on window close.
5.1
⚡ Features
All
Clear all the cookies (including HttpOnly) withwindow.clear_cookies()
. Sponsored by TBSAll
pywebview event handler can now have an optionalwindow
parameter that holds an instance of theWindow
object that triggered the event.
🚀 Improvements
Windows
Add window shadow withwebview.create_window(..., shadow=True)
. Thanks @yllhwa
🐞 Bug fixes
Cocoa
Fix showing windowQT
Fix fetching cookies in private modeQT
Fix blank screen in Pop! OS. Thanks @ysfchn.GTK
Fix frameless windows having a hard-coded minimum size. Thanks @coffeejunk
5.0.5
5.0.4
5.0.3
5.0.1
⚡ Features
- Android support. pywebview can now be used on Android devices with help of buildozer in producing APK. #377
- DOM manipulation, traversal and events. pywebview provides a set of functions for mutating DOM nodes and traversing DOM, as well as you can subscribe to DOM events directly in Python. #1218
- Application settings
webview.settings
. You can now override default behaviour of pywebview by modifying this dictionary. Currently configurable settings include.
webview.settings = {
'ALLOW_DOWNLOADS': False, # Allow file downloads
'ALLOW_FILE_URLS': True, # Allow access to file:// urls
'OPEN_EXTERNAL_LINKS_IN_BROWSER': True, # Open target=_blank links in an external browser
'OPEN_DEVTOOLS_IN_DEBUG': True, # Automatically open devtools when `start(debug=True)`.
}
- Support for file downloads. To enable file downloads, set
webview.settings['ALLOW_DOWNLOADS'] = True
. Disabled by default. - Full path support for file drag n drop. To get a full path of the dragged file, pywebview introduces
event['domTransfer']['files'][0]['pywebviewFullPath']
value in thedrop
event caught on the Python side. To subscribe to the event you usewindow.dom.document.events.drop += on_drop
. window.maximize()
- maximize window.
🚀 Improvements
All
A more powerful JS data serializer capable of handling different data types and detecting circular references #1217All
Nested JS API support. Seeexamples/js_api.py
for details. Thanks @AlecHaringAll
BREAKING:window.get_elements
returns a list of instances of a newElement
object.All
BREAKING:evaluate_js
throws awebview.errors.JavascriptException
if executed codes raises an errorWindows
WebView2 control updated to 1.0.2045.28Windows
Add SSL support for local HTTP server.GTK
Update deprecated code
🐞 Bug fixes
Cocoa
Suppress secure coding is not enabled for restorable state warning. Thanks @awesomo4000EdgeChromium
Background color not available in webview2. Thanks @VanthysEdgeChromium
Multiple focus events on window show. Thanks @yllhwaGTK
Fallback for Webkit4.0 if 4.1 not found. Thanks @starnight.QT
Fix user agent string. #1256 Thanks @TransparentLC.QT
Solve the blank main window issue on RHEL9. Thanks @justincui #1266QT
Submenu actions firing incorrectly #1318