summaryrefslogtreecommitdiff
path: root/choices.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-26 12:03:03 -0600
committerJeff Carr <[email protected]>2024-01-26 12:03:03 -0600
commit0bdabc5747163859ddf88e0ea0a4b1712a658bb9 (patch)
treecea295709de64ab4cec1cb5e211c19b38a93e57f /choices.go
parent386e35a926e42ccf198000ea5e256f217bed8a55 (diff)
new gui versionv0.13.0
keep choices in sync add more tests for entry boxes Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'choices.go')
-rw-r--r--choices.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/choices.go b/choices.go
index 032a2d0..753e135 100644
--- a/choices.go
+++ b/choices.go
@@ -63,7 +63,16 @@ func newChoices(parent *gui.Node) *choices {
c.animal.AddText("honey badger")
c.animal.AddText("polar bear")
- c.place = gadgets.NewBasicEntry(c.grid, "favorite place")
+ c.place = gadgets.NewBasicEntry(c.grid, "common favorite place")
+ c.place.Custom = func () {
+ log.Info("now set to:", c.place.String())
+ if c.place == section1.place {
+ section2.place.SetText(c.place.String())
+ }
+ if c.place == section2.place {
+ section1.place.SetText(c.place.String())
+ }
+ }
c.place.SetText("coffee shop")
return c