Closed tarquo23 closed 3 years ago
I could not reproduce it ran as a standalone application.
I have no clue how to use pywebview from tkinter or another gui application. pywebview was not designed for that, but apparently people try to do it all the time.
I guess it's because on the internet it's recommended when you ask how you can open web pages, but not when you're looking for which framework to build an application with. So the needs are discovered when a good part of the functions have already been written with other libraries, such as Tkinter.
One solution is to open pywebview as a separate window along with tktinter gui in another window. Here is an example of multiprocessing architecture https://github.com/r0x0r/pywebview/blob/2cff89a76fd70a621900e5e806355affc24f787d/docs/examples/no_block.md
Thanks for your availability, these days I try to see if I can make it work!
you can run Tkinter GUI loop (root.mainloop()
) in another thread
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The message to post on the issue when closing it. If none provided, will not comment when closing an issue.
Specification
Description
Hi, I'm working on my thesis project for neurological experiments. So far I have used Tkinter to build a desktop application and start from it some experiments using Psychopy. Now I would need to display some web pages inside my application to give the user instructions on how to move around the page. So I decided to use your library to open a webpage within my application. I don't know if this is not possible but when I launch the code below,
web = webview.create_window('Experiment', 'https://www.nespresso.com/it/it/our-choices/esperienza-caffe/lean-in-and-listen-stories-behind-nespresso-fairtrade-coffee')
webview.start()
the application crashes and I get the following output. Am I doing something wrong or just a Tkinter GUI can't live with your library?Practicalities
NO I am willing to work on this issue myself.
NO I am prepared to support this issue financially.