webui-dev / nim-webui

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

WebView? #36

Closed Sznymo closed 2 months ago

Sznymo commented 3 months ago

Does WebUI-Nim already support WebView?

hassandraga commented 3 months ago

Yes, using showWv(). More inf: https://github.com/webui-dev/nim-webui/blob/2721aded0ec376908804b63bbf3c8c2524b305ae/webui.nim#L423C6-L423C12

Sznymo commented 2 months ago

Error: attempting to call undeclared routine: 'showWv' In the latest version after importing import webui

neroist commented 2 months ago

Error: attempting to call undeclared routine: 'showWv' In the latest version after importing import webui

use webui#head

Sznymo commented 2 months ago

zrzut_ekranu_20240713_224617 zrzut_ekranu_20240713_224853 error continues to occur, in addition nimble install installs versions from the neroist repository

Sznymo commented 2 months ago

good I see where there is an error "nimble install webui and nimble install https://github.com/webui-dev/nim-webui" they install the old version by some miracle

ITwrx commented 2 months ago

trying to install latest code, but nimble install webui@#head fails with: Version may only consist of numbers and the '.' character but found '-'.

neroist commented 2 months ago

@ITwrx try installing now, it should be fixed. (also seems like you should've opened a new issue for this?)

ITwrx commented 2 months ago

@neroist It works now, thanks! I was just trying to be "low key" with only a comment instead of an issue. I figured i would just comment, and if anyone saw it and wanted to address it great, otherwise i would just wait on 2.5.0 (non beta) to have a tagged release. I wasn't in a huge hurry.