diff options
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 +} |
