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 /choices.go | |
| parent | 0e333cd78f4bdf69a77c2fcf0e17d5ceebff21e5 (diff) | |
hidden settings seem to workv0.0.1
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'choices.go')
| -rw-r--r-- | choices.go | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -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 +} |
