blob: ebf5b5304f3567c50082f0071d7bc0d1270954b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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'
skang.clear()
skang.window(500, 500, "G'day planet.")
--quitter = skang.widget('button', 'Quit', 0.5, 0.5, 0.5, 0.5)
--quitter:action('quit') -- 'quit' is looked up in ThingSpace.commands, and translated into the Lua 'skang.quit()'.
--other.foo = 'stuff'
this.bar = 'things'
this.ffunc(1, 'two')
|