yglukhov / nimx

GUI library
MIT License
1.1k stars 75 forks source link

Example not working in nim 1.0.2 #383

Closed madprops closed 4 years ago

madprops commented 5 years ago
import nimx/window
import nimx/text_field

proc startApp() =
    # First create a window. Window is the root of view hierarchy.
    var wnd = newWindow(newRect(40, 40, 800, 600))

    # Create a static text field and add it to view hierarchy
    let label = newLabel(newRect(20, 20, 150, 20))
    label.text = "Hello, world!"
    wnd.addSubview(label)

# Run the app
runApplication:
    startApp()
nimble/pkgs/nimx-0.1/nimx/private/worker_queue.nim(13, 18) Error: undeclared identifier: 'Thread'
yglukhov commented 4 years ago

Please compile with --threads:on flag.