summaryrefslogtreecommitdiff
path: root/choices.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-19 17:08:15 -0600
committerJeff Carr <[email protected]>2024-01-19 17:08:15 -0600
commite1e453a574d7eac7b24c088a7c2075a519a4f306 (patch)
tree0f3da927487460e94a7eca0de5254fd6509cef27 /choices.go
parent0e333cd78f4bdf69a77c2fcf0e17d5ceebff21e5 (diff)
hidden settings seem to workv0.0.1
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'choices.go')
-rw-r--r--choices.go19
1 files changed, 12 insertions, 7 deletions
diff --git a/choices.go b/choices.go
index 2c9fcd2..2cef465 100644
--- a/choices.go
+++ b/choices.go
@@ -8,13 +8,13 @@ import (
)
type choices struct {
- group *gui.Node // the group
- grid *gui.Node // the grid
- hello *gui.Node // the hello button
+ group *gui.Node // the group
+ grid *gui.Node // the grid
+ hello *gui.Node // the hello button
computers *gui.Node
- colors *gui.Node
+ colors *gui.Node
- ol *gadgets.OneLiner
+ socks *gadgets.OneLiner
}
// This initializes the first window and some widgets
@@ -49,8 +49,13 @@ func newChoices(parent *gui.Node) *choices {
c.grid.NewCheckbox("Checkers").SetProgName("CHECKERS")
- c.ol = gadgets.NewOneLiner(c.grid, "two for one")
- c.ol.SetValue("socks")
+ c.socks = gadgets.NewOneLiner(c.grid, "two for one")
+ c.socks.SetValue("socks")
return c
}
+
+func (c *choices) SetSocks(s string) *choices {
+ c.socks.SetValue(s)
+ return c
+}