Skip to content

Commit

Permalink
move to named args
Browse files Browse the repository at this point in the history
  • Loading branch information
elcritch committed Dec 16, 2023
1 parent 07c25f0 commit 7c0f43e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ If the last line is `result = node` then the widget template will return the wid
```nim
proc draw*(self: Main) {.slot.} =
let vert = vertical "vert", parent=self:
with node:
offset 30'ux, 10'ux
size 400'ux, 120'ux
size node, 400'ux, 120'ux
result = node
echo "vertical node created: ", vert
Expand Down

0 comments on commit 7c0f43e

Please sign in to comment.