compiles and runs

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-17 01:52:54 -06:00
parent 433a517e4f
commit e691f1c52b
1 changed files with 16 additions and 1 deletions

17
main.go
View File

@ -22,7 +22,7 @@ func helloworld() {
window := myGui.NewWindow("hello world")
box := window.NewBox("vbox", false)
group := box.NewGroup("groupy")
group := box.NewGroup("choices")
grid := group.NewGrid("gridiron", 2, 1)
grid.NewButton("hello", func() {
log.Println("world")
@ -45,4 +45,19 @@ func helloworld() {
cb.AddText("Cyan")
cb.AddText("Magenta")
cb.AddText("Yellow")
queryGroup := box.NewGroup("query")
queryGroup.NewButton("Which Computer?", func() {
tmp := dd.String()
log.Println("computer =", tmp)
for i, s := range dd.Strings() {
log.Println("has option", i, s)
}
})
queryGroup.NewButton("Which Color?", func() {
tmp := cb.String()
log.Println("color =", tmp)
})
}