summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index e2ac93a..d501c96 100644
--- a/main.go
+++ b/main.go
@@ -11,6 +11,7 @@ var myGui *gui.Node // This is the beginning of the binary tree of widgets
// go will sit here until the window exits
func main() {
myGui = gui.New().Default()
+ myGui.LoadToolkit("nocui")
helloworld()
gui.Watchdog()
@@ -20,7 +21,8 @@ func main() {
func helloworld() {
window := myGui.NewWindow("hello world")
- group := window.NewGroup("foo bar")
+ box := window.NewBox("bw vbox", false)
+ group := box.NewGroup("foo bar")
group.NewButton("hello", func() {
log.Println("world")
})