From 8af3f2e105471f780ecaed664db3ca88123404f7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 16 Jan 2024 18:53:11 -0600 Subject: [PATCH] simple hello world app --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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") })