diff options
Diffstat (limited to 'choices.go')
| -rw-r--r-- | choices.go | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -15,7 +15,9 @@ type choices struct { colors *gui.Node checkers *gui.Node - socks *gadgets.OneLiner + socks *gadgets.OneLiner + animal *gadgets.BasicCombobox + place *gadgets.BasicEntry } // This initializes the first window and some widgets @@ -56,6 +58,14 @@ func newChoices(parent *gui.Node) *choices { c.socks = gadgets.NewOneLiner(c.grid, "two for one") c.socks.SetValue("socks") + c.animal = gadgets.NewBasicCombobox(c.grid, "animals") + c.animal.AddText("otter") + c.animal.AddText("honey badger") + c.animal.AddText("polar bear") + + c.place = gadgets.NewBasicEntry(c.grid, "favorite place") + c.place.SetText("coffee shop") + return c } |
