webui-dev / python-webui

Use any web browser as GUI, with Python in the backend and HTML5 in the frontend.
https://webui.me/
MIT License
231 stars 11 forks source link

Do not show window #22

Open bigov opened 1 month ago

bigov commented 1 month ago

On my Arch Linux with Xfce4 the example code do not show the window, and do not show any errors. Runtime Dependencies (GTK3, WebKitGTK and QtCore, QtGui, QtWidgets) present both. Web bowser is Firefox.

hassandraga commented 1 month ago

This wrapper is old and not updated yet. You can try manually replace the dynamic library from the latest one: https://github.com/webui-dev/webui/releases/tag/nightly

Webui needs only a web browser, does not depend on anything.

ludwigkraatz commented 1 month ago

have the same issue Firefox does not seem to work with 2.4.5, same goes for safari.

https://github.com/webui-dev/python-webui/blob/345ac7085aae2300a59bfd55b675d15a72f0305f/PyPI/Package/src/webui/webui.py#L30

weirdly, the default browser isn't even "any" as suggested in the browser class of webui, but if not specified differently in the window.show() call, a Chromium Based is the only browser option tried:

https://github.com/webui-dev/python-webui/blob/345ac7085aae2300a59bfd55b675d15a72f0305f/PyPI/Package/src/webui/webui.py#L167

my suggestion: download chromium. only way i got it to work as of 2.4.5

(other options fail silently)

hassandraga commented 1 month ago

Basically the wrapper needs to be updated to 2.5.0. Hopefully someone may have time and push a PR soon.