summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-16 18:53:11 -0600
committerJeff Carr <[email protected]>2024-01-16 18:53:11 -0600
commit8af3f2e105471f780ecaed664db3ca88123404f7 (patch)
tree006fac49d119b1f5d91a1eee590b4b194f1d6e7f /main.go
parent0d6e4271e801b8db8e10c6b5f6ee79a988f7dc1b (diff)
simple hello world app
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")
})