diff options
| author | Jeff Carr <[email protected]> | 2024-01-16 18:53:11 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-16 18:53:11 -0600 |
| commit | 8af3f2e105471f780ecaed664db3ca88123404f7 (patch) | |
| tree | 006fac49d119b1f5d91a1eee590b4b194f1d6e7f /main.go | |
| parent | 0d6e4271e801b8db8e10c6b5f6ee79a988f7dc1b (diff) | |
simple hello world app
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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") }) |
