From e1e453a574d7eac7b24c088a7c2075a519a4f306 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 19 Jan 2024 17:08:15 -0600 Subject: hidden settings seem to work Signed-off-by: Jeff Carr --- choices.go | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'choices.go') 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 +} -- cgit v1.2.3