diff options
Diffstat (limited to '')
-rw-r--r-- | src/GuiLua/test.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GuiLua/test.lua b/src/GuiLua/test.lua index 705f7ad..aa7235a 100644 --- a/src/GuiLua/test.lua +++ b/src/GuiLua/test.lua | |||
@@ -4,9 +4,10 @@ do -- Only I'm not gonna indent this. | |||
4 | 4 | ||
5 | local skang = require 'skang' | 5 | local skang = require 'skang' |
6 | local _M = skang.moduleBegin('test', nil, 'Copyright 2014 David Seikel', '0.1', '2014-03-27 03:57:00', [[ | 6 | local _M = skang.moduleBegin('test', nil, 'Copyright 2014 David Seikel', '0.1', '2014-03-27 03:57:00', [[ |
7 | local win = skang.window(500, 500, "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 translat '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 | skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button", "ffunc()", 10, 40, 100, 30', action='test.ffunc(3, 4)'} | ||
10 | ]]) | 11 | ]]) |
11 | 12 | ||
12 | print('code') | 13 | print('code') |