New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Message Box function #1379
Comments
it is |
There is a custom message box implementation that overwrites |
If you only plan to run on Windows, simply use win32 api like this. import webview
import ctypes
def my_alert(title, text, flags=0x00001030):
ctypes.windll.user32.MessageBoxW(None, text, title, flags)
window = webview.create_window("Hello world", "https://pywebview.flowrl.com/hello")
window.expose(my_alert)
webview.start(debug=True)
# js: pywebview.api.my_alert("Error", "error while loading") |
I pushed a fix to master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Specification
Description
I have not seen any method to create a message box in pywebview, only some half-baked solutions using Tk, but they don't integrate very well with the window GUI. There was a method in the PR for #949 but it doesn't seem to be in 5.1 anymore 🤔
JS alert() don't look good on Windows with edgechromium
The text was updated successfully, but these errors were encountered: