remove this to see what happens

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-12 21:20:12 -06:00
parent ac4999c721
commit 6c444a641a
1 changed files with 0 additions and 29 deletions

29
main.go
View File

@ -1,29 +0,0 @@
package main
import (
"go.wit.com/log"
"go.wit.com/gui"
)
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")
buildworld()
gui.Watchdog()
}
// This initializes the first window, a group and a button
func buildworld() {
window := myGui.NewWindow("build world")
box := window.NewBox("vbox", false)
group := box.NewGroup("groupy")
grid := group.NewGrid("gridiron", 2, 1)
grid.NewButton("build", func() {
log.Println("make something to build everything")
})
}