From 99b87970040927e355a19a6c9c34feb57d45ded7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 20 Jan 2024 21:22:43 -0600 Subject: add basic entry widget for testing Signed-off-by: Jeff Carr --- choices.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'choices.go') 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 } -- cgit v1.2.3