-
Help! class Api:
def close_window(self) -> None:
Debug("close_window", webview.windows[0].title)
webview.windows[0].destroy() |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This should close the program and any windows created by it. |
Beta Was this translation helpful? Give feedback.
-
@iceriny when you destroy the last window it will release webview.start and kill the gui loop. If you have nothing else blocking the execution like non-daemon threads your program will quit. |
Beta Was this translation helpful? Give feedback.
@iceriny when you destroy the last window it will release webview.start and kill the gui loop. If you have nothing else blocking the execution like non-daemon threads your program will quit.