1 #!/usr/local/bin/rune -x
10 alias stdio.File *stdout = stdio.stdout;
12 typedef gfx.Event Event;
13 typedef gfx.Frame Frame;
14 typedef gadgets.ButtonFrame Button;
16 subclass Button as MyButton {
21 stdout->show("BUTTON!", this.text);
26 main(int ac, char **av)
32 frame.createFrame("BODY", &gfx.root, 128, 128, BODY);
33 frame->setBGColor(255, 129, 0);
34 button1.createButton(frame, -1, -1, ABOVE, "Test1");
35 button2.createButton(frame, -1, -1, ABOVE, "Test2");
37 Thread.waitThreads(); # wait until all threads have exited