Skip to content
This repository has been archived by the owner on Apr 11, 2020. It is now read-only.

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ba0f3 committed Aug 14, 2018
1 parent b62e037 commit d015edf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Checkout [examples](https://github.com/ba0f3/uibuilder.nim/tree/master/examples)
### Usage
> you must have [Glade](https://glade.gnome.org/) installed in order to build UI and create *.glade files
```shell
$ nimble install uibuilder
```

UIBuilder contains a library for load glade file and construct UI on-the-fly, another part - `uibuilder` binary - which generates a Nim module from glade file.

#### Load Glade file
Expand All @@ -24,7 +28,7 @@ builder.run()
> Note: only widgets have `id` are exported
```shell
$ uibuilder /path/to/glade/file.glage
$ uibuilder /path/to/glade/file.glade
```


Expand Down
5 changes: 5 additions & 0 deletions uibuilder.nim
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,11 @@ when isMainModule:
"""

output.close()
echo &"""Nim code saved at: {outputPath}
Run command bellow to see the result:
# nim c -r {outputPath}
"""

when isMainModule:
if paramCount() != 1:
Expand Down

0 comments on commit d015edf

Please sign in to comment.