Trying to use webview from a Python program with another window already open #941
Unanswered
RandallWert
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to help a student with a Python program that already uses various tkinter windows. At one point in the program, she has one window open, and this window displays buttons to allow the user to open websites using pywebview. Her intention was to allow the user to view a website using pywebview, then return to the preexisting tkinter window that they started from. But in trying to do this, her program is crashing with a 139 segmentation fault.
I've been reading the pywebview documentation, various stackoverflow posts and other sites, including issues and discussions here on GitHub. From what I can tell, it looks like pywebview completely takes over the main thread, and that this is somehow related to the problem. Can anyone confirm this and/or let us know if she can use pywebview to accomplish what she's trying to do?
(I should point out: She has also written a small test program that only uses the recommended pywebview code from the examples provided online. This little program works just fine, but it doesn't involve returning to a previous tkinter window, which is what she really wants to do.)
Beta Was this translation helpful? Give feedback.
All reactions