summaryrefslogtreecommitdiff
path: root/choices.go
diff options
context:
space:
mode:
Diffstat (limited to 'choices.go')
-rw-r--r--choices.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/choices.go b/choices.go
index 32eecf6..032a2d0 100644
--- a/choices.go
+++ b/choices.go
@@ -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
}