@zephraph thank you for your reply and for your fix!
After running simply.py example:
- Windows 10. Some little fix. Please, set
before
if platform.system() == "Windows":
url += ".exe"
(In your fix you changed adding .exe but before url += flags)
- Ubuntu 24.04 (running in virtualbox):
After running your new version window with title "Title set from python" appeared (In old version there was not any window at all), but this window is blank. No devtools appearing after call it from context menu (in windows devtools works)
I tried to investigate, if it is really no content in window or it is invisible. As devtools is not working I simply dragged mouse and clicked in the window, and when I did it appeared the word "world", I dragged it on the screen, but when I release mouse button it disappeared. So I can conclude that window content presents but invisible.
I tested it with and without devtools, and it doesnt work
In webview log I see this error:
libEGL warning: egl: failed to create dri2 screen
and
libEGL warning: DRI3: Screen seems not DRI3 capable
I hope this log helps you:
python3 simple.py
Creating webview
Processing message loop
Receiving messages from webview process...
2025-02-24T09:53:43.112212Z INFO webview: Starting webview with options: Options { title: "Simple", load: Some(Html { html: "<h1>Hello, World!</h1>", origin: "init" }), size: None, decorations: true, transparent: false, autoplay: false, devtools: true, incognito: false, clipboard: false, focused: false, accept_first_mouse: false, ipc: false, initialization_script: Some("console.log('This is printed from initializationScript!')"), user_agent: None }
libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: DRI3: Screen seems not DRI3 capable
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
VMware: No 3D enabled (0, Success).
libEGL warning: egl: failed to create dri2 screen
VMware: No 3D enabled (0, Success).
libEGL warning: egl: failed to create dri2 screen
2025-02-24T09:53:43.469151Z INFO webview: Webview initialized
Read chunk size: 70 bytes
Received raw message: b'{"$type":"notification","data":{"$type":"started","version":"0.3.0"}}'
Decoded message: NotificationMessage(data=StartedNotification(version='0.3.0'))
Received notification: StartedNotification(version='0.3.0')
Receiving messages from webview process...
handle_start called
VMware: No 3D enabled (0, Success).
libEGL warning: egl: failed to create dri2 screen
VMware: No 3D enabled (0, Success).
libEGL warning: egl: failed to create dri2 screen
Read chunk size: 51 bytes
Received raw message: b'{"$type":"response","data":{"$type":"ack","id":0}}'
Decoded message: ResponseMessage(data=AckResponse(id=0))
Return ack: AckResponse(id=0)
Read chunk size: 114 bytes
Received raw message: b'{"$type":"response","data":{"$type":"result","id":1,"result":{"$type":"string","value":"Title set from Python"}}}'
Decoded message: ResponseMessage(data=ResultResponse(id=1, result=StringResultType(value='Title set from Python')))
Return result: ResultResponse(id=1, result=StringResultType(value='Title set from Python'))
Current title: Title set from Python
Read chunk size: 51 bytes
Received raw message: b'{"$type":"response","data":{"$type":"ack","id":2}}'
Decoded message: ResponseMessage(data=AckResponse(id=2))
Return ack: AckResponse(id=2)
VM 0x7fe86a400000 on pid 415109 received NeedDebuggerBreak trap
Read chunk size: 51 bytes
Received raw message: b'{"$type":"response","data":{"$type":"ack","id":3}}'
Decoded message: ResponseMessage(data=AckResponse(id=3))
Return ack: AckResponse(id=3)
VMware: No 3D enabled (0, Success).
libEGL warning: egl: failed to create dri2 screen
VMware: No 3D enabled (0, Success).
libEGL warning: egl: failed to create dri2 screen
2025-02-24T09:54:15.425233Z INFO webview: Webview close requested
Read chunk size: 51 bytes
Received raw message: b'{"$type":"notification","data":{"$type":"closed"}}'
Decoded message: NotificationMessage(data=ClosedNotification())
Received notification: ClosedNotification()
Webview closed

And after dragging invisible word with mouse:

@zephraph thank you for your reply and for your fix!
After running simply.py example:
before
(In your fix you changed adding .exe but before url += flags)
After running your new version window with title "Title set from python" appeared (In old version there was not any window at all), but this window is blank. No devtools appearing after call it from context menu (in windows devtools works)
I tried to investigate, if it is really no content in window or it is invisible. As devtools is not working I simply dragged mouse and clicked in the window, and when I did it appeared the word "world", I dragged it on the screen, but when I release mouse button it disappeared. So I can conclude that window content presents but invisible.
I tested it with and without devtools, and it doesnt work
In webview log I see this error:
libEGL warning: egl: failed to create dri2 screenand
libEGL warning: DRI3: Screen seems not DRI3 capableI hope this log helps you:
And after dragging invisible word with mouse: