Making Samples executable. #!/usr/bin/env io and chmod a+x *.io
[io/jrb1.git] / addons / Flux / samples / Test / main2.io
blob90998bce30bcf33fc57a349c723c25f8d735addf
1 #!/usr/bin/env io
3 Flux
5 Controller := Object clone do(
6 push := method(button,
7 button setTitle("Please don't push this button again.")
11 app := Application clone
13 app appDidStart := method(
14 app mainWindow setTitle("Test")
15 b := Button clone
16 b setTitle("Foo")
17 b setWidth(300)
18 b setActionTarget(Controller)
19 b setAction("push")
20 app mainWindow addSubview(b)
23 app run