tkwebview2
tkwebview2 copied to clipboard
tkinter use WebView2 Runtime to render html
I would like to know if it is possible to make post requests from Python to tkinterweb, when the web is in a file. ex: myhtmlframe.load_url(f "file:///webpage/index.html") Or if there...
在使用tkwebview2==3.5.0&PyWebview>=4.0时, 发生 ``` [pywebview] WebView2 initialization failed with exception: (0x800700AA): 请求的资源在使用中。 (异常来自 HRESULT:0x800700AA) 在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) 在 Microsoft.Web.WebView2.Core.CoreWebView2Environment.d__84.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 Microsoft.Web.WebView2.WinForms.WebView2.d__25.MoveNext()...
一个之前提在关掉的pr里,不知道您是否看见的小建议:就是在没有其他文件的情况下,`setup.py`里不要用`packages=find_packages(...)`而是用`py_modules=[...]`。这样发布的话就不会存在`from xxx import xxx`这样的麻烦事了,使用者直接`import xxx`就完事了。以及这样就顺便解决了随包发布的Demo和其他程序中import处的代码不同的问题。 我也才知道的,可以参考[kennethreitz大佬提供的setup.py](https://github.com/kennethreitz/setup.py/blob/master/setup.py)例子,里面107和108行的注释说了这个好东西。 您可以计划弄一个大版本更新,告诉大家这次更新与旧版不相容
目前打算接管webview2的下载事件,但仅此而已。
Hello I am trying to run this in my client PC it is old PC windows 7 32bit I get this error: 
Description: Currently, js_api is not available in tkwebview2 to pass Python methods or data from JavaScript in the WebView. Although the js_api parameter is passed when creating a WebView2 instance,...