summaryrefslogtreecommitdiff
path: root/choices.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-05 15:04:41 -0600
committerJeff Carr <[email protected]>2024-02-05 15:04:41 -0600
commit3f3e8e1b2ebff2978c28bcdf870ab5bc5b9076b4 (patch)
tree5aca377ade5625c051d63b11ca659e29b07afe34 /choices.go
parent1a0de8d839d9f55c3f65bd1ea0baa4b3e7474c22 (diff)
button to set basic entryv0.20.0
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'choices.go')
-rw-r--r--choices.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/choices.go b/choices.go
index ee496d5..654f0b9 100644
--- a/choices.go
+++ b/choices.go
@@ -62,7 +62,7 @@ func newChoices(parent *gui.Node) *choices {
c.animal.AddText("honey badger")
c.animal.AddText("polar bear")
- c.place = gadgets.NewBasicEntry(c.grid, "common favorite place")
+ c.place = gadgets.NewBasicEntry(c.grid, "favorite place")
c.place.Custom = func() {
log.Info("now set to:", c.place.String())
if c.place == section1.place {
@@ -80,6 +80,9 @@ func newChoices(parent *gui.Node) *choices {
c.grid.NewButton("disable animals", func() {
c.animal.Disable()
})
+ c.grid.NewButton("set trust", func() {
+ c.place.SetText("trust")
+ })
return c
}