#!/usr/bin/env skang -l test -- Lua allows this shell hack. -- There's an implied local this = require 'test' -- There's an implied local skang = require 'skang' -- local other = require 'otherPackageName' -- This is a bit more verbose than I wanted. lol local win = skang.window(500, 500, "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()'? skang.thingasm{win, 'ffuncer', 'Calls ffunc', types = 'widget', widget='"button", "ffunc()", 10, 40, 100, 30', action='test.ffunc(3, 4)'} win.W.ffuncer.action = 'test.ffunc(3, 4)' --other.foo = 'stuff' this.bar = 'things' this.ffunc(1, 'two')