Coder Social home page Coder Social logo

bung87 / crowngui Goto Github PK

View Code? Open in Web Editor NEW
28.0 4.0 3.0 770 KB

Web Technologies based Crossplatform GUI Framework, WebView in Nim

Home Page: https://bung87.github.io/crowngui/

License: MIT License

Nim 99.14% HTML 0.24% JavaScript 0.62%
webgui webview

crowngui's Issues

Using webview2.nim

I want to use the code in webview2.nim without the crowngui app to learn something about the internals of webview, it seems it should be possible because there is this code at line 250:

when isMainModule:
  SetCurrentProcessExplicitAppUserModelID("webview2 app")
  var v = newWebView()
  assert v.webview_init() == 0

  v.run

but there is no newWebView() proc which can be called.
How can I write a newWebView() that starts the app?
I tried to add this at line 252: import ../../webview.nim
and I can compile, but it fails to run with this error:
ERROR:window_impl.cc(121)] Failed to unregister class Chrome_WidgetWin_0. Error = 0

Error: undeclared identifier: 'ID' in stable and latest

Installing crowngui@#head
Building crowngui/crowngui.exe using c backend
C:\Users\dev1lroot\AppData\Local\Temp\nimble_9460\githubcom_bung87crowngui_#head\src\crownguipkg\webview.nim(22, 11) Error: undeclared identifier: 'ID'
Tip: 49 messages have been suppressed, use --verbose to show them.
Error: Build failed for package: crowngui
... Execution failed with exit code 1
... Command: I:\WindowsLibrary\Terminal\nim-1.4.6\bin\nim.exe c --colors:on --noNimblePath -d:release -d:NimblePkgVersion=0.2.7 --path:C:\Users\dev1lroot.nimble\pkgs\regex-0.19.0 --path:C:\Users\dev1lroot.nimble\pkgs\unicodedb-0.9.0 --path:C:\Users\dev1lroot.nimble\pkgs\xlsx-0.4.5 --path:C:\Users\dev1lroot.nimble\pkgs\zip-0.3.1 --path:C:\Users\dev1lroot.nimble\pkgs\static_server-2.2.0 --path:C:\Users\dev1lroot.nimble\pkgs\finder-0.2.0 --path:C:\Users\dev1lroot.nimble\pkgs\zippy-0.5.6 --path:C:\Users\dev1lroot.nimble\pkgs\jsonschema-0.2.1 --path:C:\Users\dev1lroot.nimble\pkgs\ast_pattern_matching-1.0.0 --path:C:\Users\dev1lroot.nimble\pkgs\objc_runtime-0.1.0 --path:C:\Users\dev1lroot.nimble\pkgs\darwin-#master --path:C:\Users\dev1lroot.nimble\pkgs\darwin-#master --hints:off -o:C:\Users\dev1lroot\AppData\Local\Temp\nimble_9460\githubcom_bung87crowngui_#head\crowngui.exe C:\Users\dev1lroot\AppData\Local\Temp\nimble_9460\githubcom_bung87crowngui_#head\src\crowngui.nim

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.