diff options
Diffstat (limited to 'stateWindow.go')
| -rw-r--r-- | stateWindow.go | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/stateWindow.go b/stateWindow.go index 74954da..cffddde 100644 --- a/stateWindow.go +++ b/stateWindow.go @@ -14,14 +14,17 @@ var apple *gui.Node func makebasicWindow() *gadgets.BasicWindow { log.Warn("start basicWindow") basicWindow = gadgets.NewBasicWindow(myGui, "basic window test") - basicWindow.Make() - basicWindow.StandardClose() basicWindow.Custom = func() { - log.Warn("got to close") + log.Info("got to close") } + basicWindow.Make() + basicWindow.StandardClose() box1 := basicWindow.Box() - group1 := box1.NewGroup("choices") + section2 = newChoices(box1) + + vbox := box1.NewBox("vbox", false) + group1 := vbox.NewGroup("controls").Horizontal() // Vertical() group1.NewButton("hide apple", func() { apple.Hide() }) @@ -29,13 +32,14 @@ func makebasicWindow() *gadgets.BasicWindow { apple.Show() }) group1.NewButton("hide computers", func() { - computers.Hide() + section2.computers.Hide() }) group1.NewButton("show computers", func() { - computers.Show() + section2.computers.Show() }) apple = group1.NewButton("apple", func() { log.Info("is not a pear") }) + return basicWindow } |
