Specification
- pywebview version: 3.3.1
- platform / version: macOS 10.15.5
Description
I'm new to pywebview, and I'm trying to figure out the right way to do the following. I'd like to save the shape of the window (width and height), when the window is closed or closing. The problem is that when I try to do this from a callback (added to window.closing), everything hangs. I think there is a deadlock somewhere, but I don't quite understand the design.
What's the right way to do this?
I can access width and height from the function f I pass to webview.start(f, window), but that doesn't solve the issue of how to trigger this logic when the window is closing.
Specification
Description
I'm new to pywebview, and I'm trying to figure out the right way to do the following. I'd like to save the shape of the window (width and height), when the window is closed or closing. The problem is that when I try to do this from a callback (added to
window.closing), everything hangs. I think there is a deadlock somewhere, but I don't quite understand the design.What's the right way to do this?
I can access width and height from the function
fI pass towebview.start(f, window), but that doesn't solve the issue of how to trigger this logic when the window is closing.