From 969f1968f2f74f8f09c4788bc7f7b1c9655ad354 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 5 May 2014 20:04:08 +1000 Subject: Call skang modules from extantz. Needs some clean up. --- src/GuiLua/test.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/GuiLua/test.lua') 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. local skang = require 'skang' local _M = skang.moduleBegin('test', nil, 'Copyright 2014 David Seikel', '0.1', '2014-03-27 03:57:00', [[ - local win = skang.window(500, 500, "G'day planet.", 'testWindow') + local win = skang.window(200, 100, "G'day planet.", 'testWindow') skang.thingasm{win, 'quitter', 'Quits the skang window', types = 'widget', widget='"button", "Quit", 10, 10, 100, 30'} - win.W.quitter.action = 'skang.quit()' -- TODO Should look it up in ThingSpace.commands, and translat 'quit' into the Lua 'skang.quit()'? + win.W.quitter.action = 'skang.quit()' -- TODO Should look it up in ThingSpace.commands, and translate 'quit' into the Lua 'skang.quit()'? + skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button", "ffunc()", 10, 40, 100, 30', action='test.ffunc(3, 4)'} ]]) print('code') -- cgit v1.1