We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code on Mac gets the error in the title:
import webview
def gui_loop_started(): import AppKit AppKit.NSApp.setActivationPolicy_(1)
self._window = webview.create_window( "", draggable=True, frameless=True, hidden=True, js_api=self, on_top=True, resizable=False, transparent=sys.platform != "win32" )
webview.start(func=gui_loop_started)
The text was updated successfully, but these errors were encountered:
Your code does not make sense. You have to create a window first
Sorry, something went wrong.
fixed the code example
Your code is not runnable nor standalone, so I still do not know what you are trying to achieve. But the code below runs fine on my machine
import webview def gui_loop_started(): import AppKit AppKit.NSApp.setActivationPolicy_(1) _window = webview.create_window( "", html="<h1>Hello, World!</h1>", draggable=True, frameless=True, on_top=True, resizable=False, ) webview.start(gui_loop_started)
it works for me as well it happened only when loading it from a LaunchDaemon in mac right after reboot
No branches or pull requests
The following code on Mac gets the error in the title:
import webview
def gui_loop_started():
import AppKit
AppKit.NSApp.setActivationPolicy_(1)
self._window = webview.create_window(
"",
draggable=True,
frameless=True,
hidden=True,
js_api=self,
on_top=True,
resizable=False,
transparent=sys.platform != "win32"
)
webview.start(func=gui_loop_started)
The text was updated successfully, but these errors were encountered: