pywebview
pywebview copied to clipboard
Upcoming 4.0 release
4.0 is going to be next major release with the following breaking changes
- New bottle.py based built-in HTTP server. The new server can be previewed in the https://github.com/r0x0r/pywebview/tree/bottle-server branch
- Local relative URLs (eg.
src/index.html
) will be opened using the built-in http server by default. Support for local URLs will still be possible using file:// schema - EdgeHTML support will be removed.
- Deprecated events will be removed.
Other changes planned for this release:
- Cookie / incognito support https://github.com/r0x0r/pywebview/issues/531
- GTK JS bridge fix using http server https://github.com/r0x0r/pywebview/issues/829
- TBA
To be released some time this year.
New http server and incognito mode merged into the https://github.com/r0x0r/pywebview/tree/4.0 branch
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
How is the android support progressing?
Not progressing at all unfortunately.
Will there be support for Python > 3.8 coming soon?
I'm currently on 3.10 and I'm not sure how the setup will be if I install another version of Python. I've never done that before and I've only been using single version.
@shirooo39 support for > 3.8 is already possible by installing pythonnet 3.0
Hi,
What is the recommended way to install the 4.0 version?
pip install git+https://github.com/r0x0r/pywebview/tree/4.0 does not seem to work propertly.
Thanks.
https://pypi.org/project/pywebview/#history
this pywebview 4.0 version is not show in pypi.org
in this current time show 3.6.3 version
@martinlombana the correct syntax is pip install git+https://github.com/r0x0r/[email protected]
@MominIqbal-1234 4.0 is not on pypi, as it is not released yet
@shirooo39 support for > 3.8 is already possible by installing pythonnet 3.0
Is another 3.6 series release planned before 4.0? It would be nice to have 3.6.4 with this fix (already merged) that adds compatibility with pythonnet 3.0.0.
@simonrob Yeah, I will release a new 3.x version before 4.0 as there are too many critical fixes.
@simonrob 3.7 is now on pypi
Can you add an easy way to change the title bar color?
@GGTEC This is not a simple task because of platform differences.
Hey, i encountered this error when trying the 4.0 release. Any fixes?
/js_api/c584c2ff-7534-11ed-9e25-a26cf82fcc7f [pywebview] WebView2 initialization failed with exception: Unable to load DLL 'WebView2Loader.dll' or one of its dependencies: The specified module could not be found (0x8007007E) at Microsoft.Web.WebView2.Core.CoreWebView2Environment.LoadWebView2LoaderDll() at Microsoft.Web.WebView2.Core.CoreWebView2Environment.<CreateAsync>d__3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Web.WebView2.WinForms.WebView2.<InitCoreWebView2Async>d__24.MoveNext()
I am using Windows 11. Thanks.
@GGTEC
create the frame less window and create the customized title bar using html css and js
@GGTEC
create the frame less window and create the customized title bar using html css and js
Yea, i make that, but the problem is when need resize the window
hi @r0x0r when you release stable version of webview 4.0 and please tell me why you use bottle framework in webview 4.0 in my option flask is best and please explain your option thanks :)
@GGTEC you try this code
import webview import time def resize(window): print('Window size is ({0}, {1})'.format(window.width, window.height)) time.sleep(2) window.resize(420, 420) print('Window size is ({0}, {1})'.format(window.width, window.height))
window = webview.create_window('Resize window example', html='hello world',frameless=True, width=800, height=600) webview.start(resize, window)
#https://pywebview.flowrl.com/examples/resize_window.html
hi @r0x0r when you release stable version of webview 4.0 and please tell me why you use bottle framework in webview 4.0 in my option flask is best and please explain your option thanks :)
It is fast, simple, single file and has no external dependencies
This is good for simple resizing, nothing dynamic, I use it to maximize the window, but the problem is when it is necessary to change the monitor... or change the size of just one side, it is something complex for something 'simple'
@r0x0r and please tell me data of stable release webview 4.0 because i am very excited to use webview 4.0 and thanks so much to improve continues pywebview
@GGTEC
i got your problem solution in this links
- https://stackoverflow.com/questions/26233180/resize-a-div-on-border-drag-and-drop-without-adding-extra-markup
- https://stackoverflow.com/questions/67463673/detect-if-user-trying-resize-a-draggable-element
- https://stackoverflow.com/questions/67014828/drag-bar-on-side-to-resize-element-width-independently-any-number-of-elements-o
Thanks, maybe this can help
@GGTEC
if this links solve your problem so tell me because if it works so i drop this link in codegrepper community thanks :)
4.0 is now released. Discussion for this release is here https://github.com/r0x0r/pywebview/discussions/1016
Hey, i encountered this error when trying the 4.0 release. Any fixes?
/js_api/c584c2ff-7534-11ed-9e25-a26cf82fcc7f [pywebview] WebView2 initialization failed with exception: Unable to load DLL 'WebView2Loader.dll' or one of its dependencies: The specified module could not be found (0x8007007E) at Microsoft.Web.WebView2.Core.CoreWebView2Environment.LoadWebView2LoaderDll() at Microsoft.Web.WebView2.Core.CoreWebView2Environment.<CreateAsync>d__3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Web.WebView2.WinForms.WebView2.<InitCoreWebView2Async>d__24.MoveNext()
I am using Windows 11. Thanks.
https://stackoverflow.com/a/74107882 This fixed it for me