basicwindow/basicWindow.go

21 lines
467 B
Go
Raw Normal View History

// This creates a simple hello world window
package main
import (
"go.wit.com/lib/gadgets"
"go.wit.com/log"
)
// This initializes the first window, a group and a button
func makebasicWindow() {
log.Warn("start basicWindow")
basicWindow = gadgets.NewBasicWindow(myGui, "basic window test")
basicWindow.Make()
basicWindow.StandardExit()
box1 := basicWindow.Box()
group1 := box1.NewGroup("choices")
group1.NewButton("hello", func() {})
basicWindow.Draw()
}