diff options
Diffstat (limited to '')
-rw-r--r-- | src/GuiLua/test.skang | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/GuiLua/test.skang b/src/GuiLua/test.skang index e3b303b..6346a4a 100644 --- a/src/GuiLua/test.skang +++ b/src/GuiLua/test.skang | |||
@@ -1,14 +1,14 @@ | |||
1 | #!/usr/bin/env skang -l test -- Lua allows this shell hack. | 1 | #!/usr/bin/env skang -l test -- Lua allows this shell hack. |
2 | 2 | ||
3 | -- There's an implied local skang = require 'skang' | 3 | -- There's an implied skang = require 'skang' |
4 | -- There's an implied local test = require 'test' | 4 | -- There's an implied test = require 'test' |
5 | 5 | ||
6 | -- This is a bit more verbose than I wanted. lol | 6 | -- This is a bit more verbose than I wanted. lol |
7 | local win = skang.window(200, 100, "G'day planet.", 'testWindow') | 7 | local win = skang.window(200, 100, "G'day planet.", 'testWindow') |
8 | skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 30'} | 8 | skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 30'} |
9 | win.W.quitter.action = 'skang.quit()' -- TODO Should look it up in ThingSpace.commands, and translate 'quit' into the Lua 'skang.quit()'? | 9 | win.W.quitter.action = 'skang.quit()' -- TODO Should look it up in ThingSpace.commands, and translate 'quit' into the Lua 'skang.quit()'? |
10 | 10 | ||
11 | skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button", "ffunc()", 10, 40, 100, 30', action='test.ffunc(3, 4)'} | 11 | skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button", "ffunc()", 10, 40, 100, 30', action='ffunc(3, 4)'} |
12 | 12 | ||
13 | test.bar = 'things' | 13 | test.bar = 'things' |
14 | test.ffunc(1, 'two') | 14 | test.ffunc(1, 'two') |