diff options
| author | Jeff Carr <[email protected]> | 2024-01-19 17:08:15 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-19 17:08:15 -0600 |
| commit | e1e453a574d7eac7b24c088a7c2075a519a4f306 (patch) | |
| tree | 0f3da927487460e94a7eca0de5254fd6509cef27 /stateWindow.go | |
| parent | 0e333cd78f4bdf69a77c2fcf0e17d5ceebff21e5 (diff) | |
hidden settings seem to workv0.0.1
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'stateWindow.go')
| -rw-r--r-- | stateWindow.go | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/stateWindow.go b/stateWindow.go index 558a1e1..0155fbc 100644 --- a/stateWindow.go +++ b/stateWindow.go @@ -14,15 +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") } + basicWindow.Make() + basicWindow.StandardClose() box1 := basicWindow.Box() - vbox := mainWindow.NewBox("vbox", false) - group1 := vbox.NewGroup("choices") + section2 = newChoices(box1) + + vbox := box1.NewBox("vbox", false) + group1 := vbox.NewGroup("controls").Horizontal() // Vertical() group1.NewButton("hide apple", func() { apple.Hide() }) @@ -30,15 +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") }) - newChoices(box1) return basicWindow } |
