diff options
| author | Jeff Carr <[email protected]> | 2024-01-20 16:13:54 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-20 16:13:54 -0600 |
| commit | 826ff283984e310a27401514b2db10b66e49e87c (patch) | |
| tree | 810f8a25da5073dfb6b678eb5551cd766eaea938 /stateWindow.go | |
| parent | 0c3ed55c33f1ce18c8d1797ade708b143589a8dc (diff) | |
add debugging window
this app is used to debug the gui and toolkit packages
Signed-off-by: Jeff Carr <[email protected]>
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 } |
