aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.skang
blob: 0c37f92ff07cebf30d462c29895541c5f9cf3255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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, 50'}
win.W.quitter.action = 'skang.quit()'  -- TODO Should look it up in ThingSpace.commands, and translat 'quit' into the Lua 'skang.quit()'?

--other.foo = 'stuff'
this.bar = 'things'
this.ffunc(1, 'two')