Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port 'Web View' demo to Python #72

Merged
merged 3 commits into from
Feb 11, 2024
Merged

Conversation

rolandlo
Copy link
Contributor

@rolandlo rolandlo commented Feb 7, 2024

I followed the Javascript implementation closely.

There was a problem that I had to solve, which doesn't appear with Javascript: The WebKit.WebView type is not known to Gtk.Builder when loading the UI file. I added a WebKit.WebView dummy widget so that at least everything works from the second time on that the Python code is run. Probably it would be the Workbench Python module which should take the responsibility to make the types known to Gtk.Builder. So my fix is only thought as a temporary solution.

demos/Web View/main.py Outdated Show resolved Hide resolved
@sonnyp sonnyp merged commit b27dc65 into workbenchdev:main Feb 11, 2024
1 check passed
@rolandlo rolandlo deleted the python-web-view branch February 12, 2024 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants